Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.0014/0.0014, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.344/1.344, allocations: 222.9 MB / 239 MB, free: 4.734 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.001381/0.001381, allocations: 196.4 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03544/0.03544, allocations: 8.787 MB / 348.2 MB, free: 4.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 74.95 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0856/0.08716, allocations: 51.57 MB / 462.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02464/0.1118, allocations: 25.01 MB / 487.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.127, allocations: 7.828 MB / 495.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004424/0.1315, allocations: 163.5 kB / 495.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01651/0.1481, allocations: 7.234 MB / 0.4907 GB, free: 6.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008971/0.1571, allocations: 2.76 MB / 0.4934 GB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005386/0.1625, allocations: 1.872 MB / 0.4952 GB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01167/0.1741, allocations: 9.228 MB / 0.5042 GB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02843/0.2026, allocations: 19.77 MB / 0.5235 GB, free: 4.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1938/0.3964, allocations: 4.765 MB / 0.5282 GB, free: 21.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006878/0.4034, allocations: 5.315 MB / 0.5334 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003602/0.407, allocations: 1.355 MB / 0.5347 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005917/0.4129, allocations: 1.727 MB / 0.5364 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0048/0.4178, allocations: 2.679 MB / 0.539 GB, free: 21.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009577/0.4274, allocations: 5.083 MB / 0.544 GB, free: 19.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01716/0.4446, allocations: 18.05 MB / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4446, allocations: 6.859 kB / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4446, allocations: 0 / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004557/0.4451, allocations: 0 / 0.5616 GB, free: 14.45 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02922/0.4743, allocations: 10.81 MB / 0.5722 GB, free: 8.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4744, allocations: 9.094 kB / 0.5722 GB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00406/0.4784, allocations: 1.265 MB / 0.5734 GB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02906/0.5075, allocations: 5.633 MB / 0.5789 GB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/0.5181, allocations: 5.673 MB / 0.5845 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004395/0.5185, allocations: 0.5854 MB / 0.585 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002923/0.5215, allocations: 0.7672 MB / 0.5858 GB, free: 0 / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03315/0.5546, allocations: 12.77 MB / 0.5982 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003891/0.5551, allocations: 15.91 kB / 0.5983 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002934/0.558, allocations: 325.8 kB / 0.5986 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005848/0.5586, allocations: 0.4898 MB / 0.599 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0255/0.5841, allocations: 12.25 MB / 0.611 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07115/0.6553, allocations: 43.72 MB / 0.6537 GB, free: 9.805 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02286/0.6782, allocations: 25.18 MB / 0.6783 GB, free: 13.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005338/0.6836, allocations: 2.975 MB / 0.6812 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005173/0.6841, allocations: 245.5 kB / 0.6814 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004723/0.6889, allocations: 2.579 MB / 0.6839 GB, free: 7.867 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 7.984e-06/0.6889, allocations: 0 / 0.6839 GB, free: 7.867 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04308/0.732, allocations: 18.11 MB / 0.7016 GB, free: 5.648 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002314/0.7323, allocations: 358.8 kB / 0.702 GB, free: 5.227 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007305/0.7396, allocations: 3.518 MB / 0.7054 GB, free: 1.703 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006985/0.7403, allocations: 85.7 kB / 0.7055 GB, free: 1.613 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1845/0.9249, allocations: 3.378 MB / 0.7088 GB, free: 166 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001337/0.9262, allocations: 1.349 MB / 0.7101 GB, free: 165.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001725/0.928, allocations: 1.086 MB / 0.7112 GB, free: 165 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.513e-05/0.928, allocations: 305.9 kB / 0.7115 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.9315, allocations: 2.55 MB / 0.714 GB, free: 164.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005658/0.9371, allocations: 4.513 MB / 0.7184 GB, free: 162.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.9481, allocations: 7.447 MB / 0.7256 GB, free: 159.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/0.9483, allocations: 17.81 kB / 0.7257 GB, free: 159.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01542/0.9637, allocations: 8.283 MB / 0.7337 GB, free: 158.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.9638, allocations: 57.27 kB / 0.7338 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.964, allocations: 58.69 kB / 0.7338 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002666/0.9666, allocations: 1.007 MB / 0.7348 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/0.9713, allocations: 1.263 MB / 0.7361 GB, free: 157.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.9817, allocations: 8.817 MB / 0.7447 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004335/0.9861, allocations: 366.7 kB / 0.745 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004687/0.9866, allocations: 262.7 kB / 0.7453 GB, free: 152.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004066/0.9907, allocations: 2.9 MB / 0.7481 GB, free: 151 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006651/0.9913, allocations: 381.1 kB / 0.7485 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008333/0.9997, allocations: 6.18 MB / 0.7545 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.9997, allocations: 44 kB / 0.7545 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.9997, allocations: 11.94 kB / 0.7546 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.98e-05/0.9998, allocations: 22.94 kB / 0.7546 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/1.018, allocations: 14.93 MB / 0.7692 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.018, allocations: 4 kB / 0.7692 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/1.021, allocations: 0.6787 MB / 0.7698 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/1.023, allocations: 0.8888 MB / 0.7707 GB, free: 133.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002605/1.023, allocations: 87.98 kB / 0.7708 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008562/1.032, allocations: 7.757 MB / 0.7784 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.032, allocations: 12.69 kB / 0.7784 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01084/1.043, allocations: 8.769 MB / 0.7869 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/1.044, allocations: 0.9062 MB / 0.7878 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000622/1.045, allocations: 83.98 kB / 0.7879 GB, free: 115.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/1.047, allocations: 191.8 kB / 0.7881 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005186/1.048, allocations: 279.1 kB / 0.7883 GB, free: 115.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/1.048, allocations: 109.4 kB / 0.7884 GB, free: 115.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003055/1.051, allocations: 2.363 MB / 0.7908 GB, free: 112.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 4e-07/1.051, allocations: 0 / 0.7908 GB, free: 112.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004404/1.055, allocations: 1.456 MB / 0.7922 GB, free: 111.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/1.066, allocations: 9.496 MB / 0.8015 GB, free: 101.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02482/1.091, allocations: 11.91 MB / 0.8131 GB, free: 89.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.091, allocations: 0 / 0.8131 GB, free: 89.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004309/1.095, allocations: 3.077 MB / 0.8161 GB, free: 86.76 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004449/1.099, allocations: 0.8112 MB / 0.8169 GB, free: 85.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09874/1.198, allocations: 59.43 MB / 0.8749 GB, free: 21.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004146/1.202, allocations: 5.012 MB / 0.8798 GB, free: 16.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004368/1.207, allocations: 1.59 MB / 0.8814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003286/1.21, allocations: 2.753 MB / 0.8841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/1.21, allocations: 0 / 0.8841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.233/2.444, allocations: 113.4 MB / 0.9948 GB, free: 85.64 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/2.444, allocations: 224.2 kB / 0.995 GB, free: 85.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.385/6.829, allocations: 0 / 0.995 GB, free: 85.38 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)