Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 239.3 MB, free: 4.57 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.001276/0.001276, allocations: 184.5 kB / 289.5 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03484/0.03484, allocations: 8.789 MB / 348.5 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 78.7 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.08282, allocations: 51.57 MB / 462.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02723/0.1101, allocations: 25.39 MB / 488.2 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.1244, allocations: 8.006 MB / 496.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00393/0.1284, allocations: 175.5 kB / 496.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.1423, allocations: 6.114 MB / 0.4907 GB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008141/0.1505, allocations: 2.745 MB / 0.4934 GB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004284/0.1548, allocations: 1.619 MB / 0.4949 GB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009731/0.1645, allocations: 7.225 MB / 0.502 GB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01829/0.1828, allocations: 13.35 MB / 0.515 GB, free: 13.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005333/0.1882, allocations: 3.728 MB / 0.5187 GB, free: 9.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006018/0.1942, allocations: 4.255 MB / 0.5228 GB, free: 5.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00253/0.1968, allocations: 1.07 MB / 0.5239 GB, free: 4.152 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003874/0.2007, allocations: 1.437 MB / 0.5253 GB, free: 2.715 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002935/0.2037, allocations: 2.147 MB / 0.5274 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.182/0.3857, allocations: 4.105 MB / 0.5314 GB, free: 23.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.3988, allocations: 14.36 MB / 0.5454 GB, free: 22.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3989, allocations: 0 / 0.5454 GB, free: 22.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3989, allocations: 0 / 0.5454 GB, free: 22.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003549/0.3992, allocations: 0 / 0.5454 GB, free: 22.3 MB / 366.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.02783/0.4271, allocations: 8.808 MB / 0.554 GB, free: 18.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4271, allocations: 9.188 kB / 0.554 GB, free: 18.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003586/0.4307, allocations: 1.043 MB / 0.555 GB, free: 18.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02525/0.456, allocations: 4.385 MB / 0.5593 GB, free: 16.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01016/0.4662, allocations: 4.509 MB / 0.5637 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004082/0.4666, allocations: 488.8 kB / 0.5642 GB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00277/0.4694, allocations: 0.6327 MB / 0.5648 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.4908, allocations: 10.36 MB / 0.5749 GB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.491, allocations: 14.81 kB / 0.5749 GB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009848/0.4919, allocations: 266.6 kB / 0.5752 GB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002851/0.4922, allocations: 415.6 kB / 0.5756 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01538/0.5076, allocations: 9.862 MB / 0.5852 GB, free: 1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05949/0.5671, allocations: 35.69 MB / 0.6201 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01996/0.5871, allocations: 20.65 MB / 0.6402 GB, free: 5.465 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003977/0.5911, allocations: 2.3 MB / 0.6425 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003669/0.5915, allocations: 234 kB / 0.6427 GB, free: 2.902 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/0.5916, allocations: 60.89 kB / 0.6428 GB, free: 2.832 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.929e-06/0.5916, allocations: 0 / 0.6428 GB, free: 2.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02275/0.6144, allocations: 10.88 MB / 0.6534 GB, free: 7.844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.6145, allocations: 85.78 kB / 0.6535 GB, free: 7.746 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005663/0.6201, allocations: 3.017 MB / 0.6564 GB, free: 4.711 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005849/0.6208, allocations: 73.7 kB / 0.6565 GB, free: 4.633 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/0.6228, allocations: 2.864 MB / 0.6593 GB, free: 1.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.6242, allocations: 1.031 MB / 0.6603 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002067/0.6263, allocations: 0.9106 MB / 0.6612 GB, free: 15.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.6264, allocations: 301.1 kB / 0.6615 GB, free: 15.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003304/0.6297, allocations: 2.031 MB / 0.6635 GB, free: 13.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004373/0.6341, allocations: 3.724 MB / 0.6671 GB, free: 8.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007697/0.6418, allocations: 6.05 MB / 0.673 GB, free: 2.363 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.794e-05/0.6419, allocations: 16 kB / 0.673 GB, free: 2.348 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01174/0.6536, allocations: 6.624 MB / 0.6795 GB, free: 12.04 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.221e-05/0.6537, allocations: 31.98 kB / 0.6795 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/0.6538, allocations: 56 kB / 0.6796 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/0.6559, allocations: 0.6759 MB / 0.6802 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004015/0.66, allocations: 1.073 MB / 0.6813 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009301/0.6693, allocations: 6.225 MB / 0.6874 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004273/0.6736, allocations: 275.5 kB / 0.6876 GB, free: 3.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009205/0.6745, allocations: 232 kB / 0.6878 GB, free: 3.453 MB / 478.1 MB 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.004765/0.6793, allocations: 2.316 MB / 0.6901 GB, free: 1.199 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009723/0.6803, allocations: 316.1 kB / 0.6904 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009105/0.6894, allocations: 4.637 MB / 0.6949 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/0.6895, allocations: 28 kB / 0.695 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/0.6895, allocations: 8 kB / 0.695 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.231e-05/0.6895, allocations: 15.94 kB / 0.695 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02275/0.7123, allocations: 11.26 MB / 0.706 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/0.7123, allocations: 8 kB / 0.706 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002294/0.7146, allocations: 0.5341 MB / 0.7065 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1568/0.8715, allocations: 0.5746 MB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005834/0.8721, allocations: 67.72 kB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0064/0.8785, allocations: 5.449 MB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.8785, allocations: 7.125 kB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009457/0.888, allocations: 6.583 MB / 0.7189 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.8896, allocations: 0.7218 MB / 0.7196 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004898/0.8901, allocations: 59.03 kB / 0.7197 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.8917, allocations: 149.9 kB / 0.7198 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003918/0.8921, allocations: 214.8 kB / 0.72 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.8923, allocations: 89.03 kB / 0.7201 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.8948, allocations: 2.015 MB / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8948, allocations: 0 / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00363/0.8984, allocations: 1.173 MB / 0.7232 GB, free: 170.7 MB / 494.1 MB 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.008229/0.9067, allocations: 7.27 MB / 0.7303 GB, free: 167.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01602/0.9227, allocations: 8.287 MB / 0.7384 GB, free: 164.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.9228, allocations: 0 / 0.7384 GB, free: 164.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0034/0.9262, allocations: 2.272 MB / 0.7406 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/0.9298, allocations: 0.6413 MB / 0.7412 GB, free: 162.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05229/0.9821, allocations: 44.51 MB / 0.7847 GB, free: 116.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003295/0.9855, allocations: 4.149 MB / 0.7888 GB, free: 112.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003588/0.9891, allocations: 1.324 MB / 0.7901 GB, free: 111.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002474/0.9916, allocations: 2.245 MB / 0.7922 GB, free: 109.2 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/0.9916, allocations: 4 kB / 0.7923 GB, free: 109.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1092/1.101, allocations: 90.04 MB / 0.8802 GB, free: 19.49 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/12.19, allocations: 6.328 kB / 0.8802 GB, free: 19.49 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)