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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.001031/0.001032, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.342/1.342, allocations: 223.3 MB / 239 MB, free: 5.516 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.001082/0.001082, allocations: 188.5 kB / 290.3 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03384/0.03384, allocations: 8.779 MB / 350.2 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.000407, allocations: 13.88 kB / 413.3 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09746, allocations: 52.56 MB / 465.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02349/0.121, allocations: 22.2 MB / 488 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01685/0.1379, allocations: 7.386 MB / 495.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005149/0.1431, allocations: 155.6 kB / 495.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.148, allocations: 1.247 MB / 496.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007634/0.1556, allocations: 2.245 MB / 499.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004119/0.1598, allocations: 1.04 MB / 0.4884 GB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.1717, allocations: 8.461 MB / 0.4966 GB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02181/0.1935, allocations: 11.11 MB / 0.5075 GB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004998/0.1986, allocations: 2.768 MB / 0.5102 GB, free: 4.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005918/0.2045, allocations: 3.218 MB / 0.5133 GB, free: 1.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.2063, allocations: 428 kB / 0.5138 GB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003669/0.21, allocations: 0.7652 MB / 0.5145 GB, free: 184 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002565/0.2126, allocations: 1.351 MB / 0.5158 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003714/0.2164, allocations: 1.385 MB / 0.5172 GB, free: 13.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.2298, allocations: 12.13 MB / 0.529 GB, free: 1.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2298, allocations: 0 / 0.529 GB, free: 1.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2298, allocations: 0 / 0.529 GB, free: 1.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004062/0.2302, allocations: 0 / 0.529 GB, free: 1.262 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.2351/0.4654, allocations: 7.455 MB / 0.5363 GB, free: 28.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.4655, allocations: 8.719 kB / 0.5363 GB, free: 28.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004439/0.4699, allocations: 1.042 MB / 0.5373 GB, free: 28.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02431/0.4942, allocations: 4.404 MB / 0.5416 GB, free: 27.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.5059, allocations: 4.466 MB / 0.546 GB, free: 27.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005917/0.5065, allocations: 488.2 kB / 0.5465 GB, free: 27.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00326/0.5098, allocations: 0.6296 MB / 0.5471 GB, free: 27.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02497/0.5348, allocations: 10.32 MB / 0.5571 GB, free: 25.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001917/0.535, allocations: 13.45 kB / 0.5572 GB, free: 25.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001045/0.5361, allocations: 266.6 kB / 0.5574 GB, free: 25.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003516/0.5364, allocations: 417.2 kB / 0.5578 GB, free: 25.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01836/0.5548, allocations: 9.809 MB / 0.5674 GB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05314/0.608, allocations: 35.76 MB / 0.6023 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01912/0.6271, allocations: 20.63 MB / 0.6225 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004145/0.6313, allocations: 2.303 MB / 0.6247 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004255/0.6317, allocations: 228.1 kB / 0.6249 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.533e-05/0.6318, allocations: 68.89 kB / 0.625 GB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=295): time 5.931e-06/0.6319, allocations: 0 / 0.625 GB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=301): time 0.02662/0.6585, allocations: 11.59 MB / 0.6363 GB, free: 14.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.6586, allocations: 85.78 kB / 0.6364 GB, free: 14.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005495/0.6641, allocations: 3.001 MB / 0.6393 GB, free: 11.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004986/0.6646, allocations: 73.7 kB / 0.6394 GB, free: 11.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002063/0.6667, allocations: 2.864 MB / 0.6422 GB, free: 8.395 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.668, allocations: 1.037 MB / 0.6432 GB, free: 7.367 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.6686, allocations: 92 kB / 0.6433 GB, free: 7.277 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004542/0.6691, allocations: 496.1 kB / 0.6438 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/0.6728, allocations: 2.008 MB / 0.6457 GB, free: 4.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00476/0.6776, allocations: 3.705 MB / 0.6493 GB, free: 312 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004692/0.6823, allocations: 2.821 MB / 0.6521 GB, free: 13.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.249e-05/0.6823, allocations: 16 kB / 0.6521 GB, free: 13.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01249/0.6948, allocations: 6.59 MB / 0.6585 GB, free: 7.215 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.609e-05/0.695, allocations: 28 kB / 0.6586 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/0.6951, allocations: 52 kB / 0.6586 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/0.6969, allocations: 0.6755 MB / 0.6593 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00391/0.7008, allocations: 1.071 MB / 0.6603 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008646/0.7095, allocations: 5.793 MB / 0.666 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003828/0.7134, allocations: 275.5 kB / 0.6662 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008042/0.7142, allocations: 228 kB / 0.6665 GB, free: 15.08 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00518/0.7194, allocations: 2.312 MB / 0.6687 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/0.7205, allocations: 320 kB / 0.669 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009609/0.7302, allocations: 4.635 MB / 0.6735 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.951e-05/0.7302, allocations: 32 kB / 0.6736 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.581e-05/0.7303, allocations: 11.61 kB / 0.6736 GB, free: 7.812 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.951e-05/0.7303, allocations: 15.94 kB / 0.6736 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02134/0.7517, allocations: 11.24 MB / 0.6846 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.372e-05/0.7517, allocations: 4 kB / 0.6846 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/0.754, allocations: 0.5367 MB / 0.6851 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.7556, allocations: 0.5567 MB / 0.6856 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003361/0.7559, allocations: 75.97 kB / 0.6857 GB, free: 11.31 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007107/0.763, allocations: 5.028 MB / 0.6906 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/0.7631, allocations: 11.95 kB / 0.6906 GB, free: 6.156 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/0.7737, allocations: 6.552 MB / 0.697 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/0.7757, allocations: 0.7533 MB / 0.6978 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008418/0.7765, allocations: 56 kB / 0.6978 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001907/0.7784, allocations: 151.9 kB / 0.698 GB, free: 14.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004223/0.7789, allocations: 209.5 kB / 0.6982 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/0.7791, allocations: 87.98 kB / 0.6983 GB, free: 14.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004086/0.7832, allocations: 2.001 MB / 0.7002 GB, free: 12.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7832, allocations: 0 / 0.7002 GB, free: 12.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005196/0.7884, allocations: 1.171 MB / 0.7014 GB, free: 11.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0104/0.7988, allocations: 7.233 MB / 0.7084 GB, free: 3.684 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1984/0.9973, allocations: 4.991 MB / 0.7133 GB, free: 176.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.9973, allocations: 2.625 kB / 0.7133 GB, free: 176.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003682/1.001, allocations: 2.264 MB / 0.7155 GB, free: 175.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/1.004, allocations: 0.6267 MB / 0.7161 GB, free: 175.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06278/1.067, allocations: 32.13 MB / 0.7475 GB, free: 160.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003943/1.071, allocations: 4.158 MB / 0.7516 GB, free: 158.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003741/1.075, allocations: 1.328 MB / 0.7528 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002621/1.077, allocations: 2.245 MB / 0.755 GB, free: 156 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/1.077, allocations: 0 / 0.755 GB, free: 156 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/1.194, allocations: 85.86 MB / 0.8389 GB, free: 70.52 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/1.194, allocations: 202.7 kB / 0.8391 GB, free: 70.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.553/4.747, allocations: 4 kB / 0.8391 GB, free: 70.27 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) Environment - environmentSimulation: