Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004873/0.004873, allocations: 99.42 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 222.9 MB / 239.4 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03347/0.03347, allocations: 8.804 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 83.89 kB / 464 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08709, allocations: 51.57 MB / 0.5034 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2104/0.2975, allocations: 25.41 MB / 0.5283 GB, free: 4.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.3099, allocations: 8.018 MB / 0.5361 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003574/0.3135, allocations: 175.4 kB / 0.5363 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01155/0.3251, allocations: 6.104 MB / 0.5422 GB, free: 4.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007817/0.3329, allocations: 2.736 MB / 0.5449 GB, free: 3.465 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004066/0.337, allocations: 1.62 MB / 0.5465 GB, free: 3.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008738/0.3457, allocations: 7.273 MB / 0.5536 GB, free: 1.145 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0191/0.3648, allocations: 13.35 MB / 0.5666 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005274/0.3701, allocations: 3.733 MB / 0.5703 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006429/0.3766, allocations: 4.225 MB / 0.5744 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002271/0.3789, allocations: 1.07 MB / 0.5754 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004057/0.3829, allocations: 1.43 MB / 0.5768 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003049/0.386, allocations: 2.145 MB / 0.5789 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007081/0.3931, allocations: 4.12 MB / 0.5829 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.4089, allocations: 14.47 MB / 0.5971 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4089, allocations: 4 kB / 0.5971 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4089, allocations: 4 kB / 0.5971 GB, free: 14.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003227/0.4093, allocations: 0 / 0.5971 GB, free: 14.96 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02273/0.432, allocations: 8.927 MB / 0.6058 GB, free: 6.004 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.4321, allocations: 12.03 kB / 0.6058 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02328/0.4553, allocations: 4.442 MB / 0.6101 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008506/0.4639, allocations: 4.621 MB / 0.6147 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003633/0.4643, allocations: 488.8 kB / 0.6151 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00172/0.466, allocations: 0.6323 MB / 0.6157 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.4845, allocations: 10.35 MB / 0.6258 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.4847, allocations: 15.88 kB / 0.6259 GB, free: 1.445 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006685/0.4854, allocations: 264.4 kB / 0.6261 GB, free: 1.195 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003515/0.4857, allocations: 417.7 kB / 0.6265 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01665/0.5024, allocations: 9.868 MB / 0.6362 GB, free: 6.902 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05053/0.5529, allocations: 35.39 MB / 0.6707 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/0.5707, allocations: 20.67 MB / 0.6909 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003347/0.5741, allocations: 2.307 MB / 0.6932 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003262/0.5744, allocations: 223.3 kB / 0.6934 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/0.5745, allocations: 68.89 kB / 0.6934 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.087e-06/0.5745, allocations: 0 / 0.6934 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.01959/0.5941, allocations: 10.96 MB / 0.7041 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.5942, allocations: 89.78 kB / 0.7042 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.5988, allocations: 3.021 MB / 0.7072 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001704/0.599, allocations: 73.7 kB / 0.7072 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.6008, allocations: 2.965 MB / 0.7101 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008104/0.6016, allocations: 1.082 MB / 0.7112 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.603, allocations: 0.9138 MB / 0.7121 GB, free: 5.309 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.059e-05/0.6031, allocations: 301.1 kB / 0.7124 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.6059, allocations: 2.024 MB / 0.7143 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003929/0.6099, allocations: 3.724 MB / 0.718 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007307/0.6172, allocations: 6.047 MB / 0.7239 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.405e-05/0.6172, allocations: 19.94 kB / 0.7239 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01011/0.6274, allocations: 6.65 MB / 0.7304 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.6274, allocations: 28 kB / 0.7304 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.107e-05/0.6275, allocations: 52 kB / 0.7305 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.6293, allocations: 0.672 MB / 0.7311 GB, free: 160 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.197/0.8263, allocations: 1.065 MB / 0.7322 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007784/0.8341, allocations: 6.222 MB / 0.7382 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/0.8376, allocations: 281.8 kB / 0.7385 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003505/0.838, allocations: 229 kB / 0.7387 GB, free: 165.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003232/0.8412, allocations: 2.312 MB / 0.741 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/0.8418, allocations: 341 kB / 0.7413 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007364/0.8491, allocations: 4.633 MB / 0.7458 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.8492, allocations: 30.69 kB / 0.7459 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.8492, allocations: 6.062 kB / 0.7459 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.471e-05/0.8492, allocations: 17.09 kB / 0.7459 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.8652, allocations: 11.09 MB / 0.7567 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.8653, allocations: 5.188 kB / 0.7567 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001921/0.8672, allocations: 0.5357 MB / 0.7573 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.8687, allocations: 0.57 MB / 0.7578 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001598/0.8688, allocations: 65.78 kB / 0.7579 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005736/0.8746, allocations: 5.455 MB / 0.7632 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.8746, allocations: 10.47 kB / 0.7632 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007657/0.8822, allocations: 6.605 MB / 0.7697 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.8835, allocations: 0.734 MB / 0.7704 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.8839, allocations: 65.23 kB / 0.7704 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.8853, allocations: 145.7 kB / 0.7706 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.8856, allocations: 210.5 kB / 0.7708 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.8858, allocations: 90 kB / 0.7709 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002244/0.888, allocations: 2.018 MB / 0.7728 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.888, allocations: 0 / 0.7728 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003129/0.8912, allocations: 1.17 MB / 0.774 GB, free: 152.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000358/0.8915, allocations: 228.6 kB / 0.7742 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006467/0.898, allocations: 5.045 MB / 0.7791 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.898, allocations: 2.531 kB / 0.7791 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003278/0.9013, allocations: 2.265 MB / 0.7813 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.904, allocations: 0.6448 MB / 0.782 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.9179, allocations: 11.16 MB / 0.7929 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002801/0.9207, allocations: 4.15 MB / 0.7969 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003075/0.9238, allocations: 1.322 MB / 0.7982 GB, free: 133.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007252/0.9245, allocations: 275.4 kB / 0.7985 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of SimCode: time 6.81e-07/0.9245, allocations: 0 / 0.7985 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.05914/0.9837, allocations: 45.25 MB / 0.8427 GB, free: 88.39 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)