Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.007807/0.007807, allocations: 102.5 kB / 15.73 MB, free: 6.016 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.41/1.41, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001894/0.001894, allocations: 196.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03524/0.03524, allocations: 8.792 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 79.88 kB / 463.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1139, allocations: 51.56 MB / 0.503 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02642/0.1404, allocations: 25.44 MB / 0.5278 GB, free: 412 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2637/0.4042, allocations: 7.937 MB / 0.5356 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005416/0.4096, allocations: 174.3 kB / 0.5357 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01809/0.4277, allocations: 7.645 MB / 0.5432 GB, free: 3.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.4385, allocations: 3.052 MB / 0.5462 GB, free: 2.641 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006813/0.4453, allocations: 2.001 MB / 0.5481 GB, free: 2.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01579/0.4611, allocations: 9.233 MB / 0.5571 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03244/0.4936, allocations: 17.27 MB / 0.574 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009945/0.5036, allocations: 4.763 MB / 0.5787 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009612/0.5132, allocations: 5.239 MB / 0.5838 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003942/0.5172, allocations: 1.358 MB / 0.5851 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006669/0.5239, allocations: 1.72 MB / 0.5868 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005827/0.5298, allocations: 2.672 MB / 0.5894 GB, free: 6.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01125/0.5411, allocations: 5.079 MB / 0.5944 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02605/0.5672, allocations: 18.15 MB / 0.6121 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.5672, allocations: 4 kB / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5672, allocations: 0 / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004581/0.5677, allocations: 0 / 0.6121 GB, free: 15.56 MB / 430.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.03456/0.6023, allocations: 10.75 MB / 0.6226 GB, free: 4.805 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.6023, allocations: 12.03 kB / 0.6226 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006046/0.6084, allocations: 1.269 MB / 0.6238 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03326/0.6417, allocations: 5.687 MB / 0.6294 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.6538, allocations: 5.799 MB / 0.6351 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006041/0.6545, allocations: 0.5817 MB / 0.6356 GB, free: 7.504 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003058/0.6576, allocations: 0.7648 MB / 0.6364 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03127/0.6889, allocations: 12.77 MB / 0.6488 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004394/0.6894, allocations: 7.906 kB / 0.6488 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002522/0.6919, allocations: 323 kB / 0.6492 GB, free: 9.641 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005673/0.6925, allocations: 0.4928 MB / 0.6496 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02657/0.7191, allocations: 12.26 MB / 0.6616 GB, free: 12.87 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08055/0.7997, allocations: 43.25 MB / 0.7038 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02443/0.8241, allocations: 25.19 MB / 0.7284 GB, free: 4.426 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005322/0.8295, allocations: 2.971 MB / 0.7313 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005284/0.8301, allocations: 247.6 kB / 0.7316 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.458/1.288, allocations: 2.578 MB / 0.7341 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.015e-06/1.288, allocations: 0 / 0.7341 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04111/1.329, allocations: 18.12 MB / 0.7518 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/1.329, allocations: 355.1 kB / 0.7521 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007354/1.337, allocations: 3.523 MB / 0.7556 GB, free: 159 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008344/1.338, allocations: 87.58 kB / 0.7557 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002243/1.34, allocations: 3.379 MB / 0.759 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001466/1.341, allocations: 1.353 MB / 0.7603 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002196/1.344, allocations: 1.084 MB / 0.7613 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.955e-05/1.344, allocations: 310.3 kB / 0.7616 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0042/1.348, allocations: 2.547 MB / 0.7641 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/1.353, allocations: 4.507 MB / 0.7685 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009254/1.363, allocations: 7.458 MB / 0.7758 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.265e-05/1.363, allocations: 15.81 kB / 0.7758 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01622/1.379, allocations: 8.275 MB / 0.7839 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/1.379, allocations: 67.08 kB / 0.784 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001356/1.379, allocations: 62.44 kB / 0.784 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/1.382, allocations: 0.9955 MB / 0.785 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004441/1.386, allocations: 1.261 MB / 0.7862 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/1.397, allocations: 8.8 MB / 0.7948 GB, free: 136.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/1.402, allocations: 363.8 kB / 0.7952 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009778/1.403, allocations: 263.6 kB / 0.7954 GB, free: 135.8 MB / 0.5294 GB 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.004721/1.408, allocations: 2.904 MB / 0.7983 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.409, allocations: 391.2 kB / 0.7986 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008924/1.418, allocations: 6.175 MB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/1.418, allocations: 44 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/1.418, allocations: 8 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/1.418, allocations: 19.92 kB / 0.8047 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02227/1.441, allocations: 14.64 MB / 0.819 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/1.441, allocations: 8 kB / 0.819 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/1.443, allocations: 0.6826 MB / 0.8197 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/1.445, allocations: 0.8775 MB / 0.8206 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003008/1.446, allocations: 86.7 kB / 0.8206 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008555/1.454, allocations: 7.741 MB / 0.8282 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.454, allocations: 12.03 kB / 0.8282 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/1.466, allocations: 8.781 MB / 0.8368 GB, free: 93.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002395/1.468, allocations: 0.91 MB / 0.8377 GB, free: 92.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009059/1.469, allocations: 84.86 kB / 0.8378 GB, free: 92.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002172/1.471, allocations: 195.8 kB / 0.8379 GB, free: 92.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005532/1.472, allocations: 267.1 kB / 0.8382 GB, free: 91.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.472, allocations: 116 kB / 0.8383 GB, free: 91.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003379/1.475, allocations: 2.368 MB / 0.8406 GB, free: 89.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/1.475, allocations: 0 / 0.8406 GB, free: 89.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00692/1.482, allocations: 1.451 MB / 0.842 GB, free: 88 MB / 0.5294 GB 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.01307/1.495, allocations: 9.484 MB / 0.8513 GB, free: 78.39 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01013/1.506, allocations: 6.497 MB / 0.8576 GB, free: 71.88 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/1.506, allocations: 0 / 0.8576 GB, free: 71.88 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005883/1.512, allocations: 3.07 MB / 0.8606 GB, free: 68.78 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00635/1.518, allocations: 0.8132 MB / 0.8614 GB, free: 68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08828/1.606, allocations: 48.01 MB / 0.9083 GB, free: 17.91 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007398/1.614, allocations: 5.005 MB / 0.9132 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005256/1.619, allocations: 1.59 MB / 0.9148 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005097/1.624, allocations: 2.749 MB / 0.9174 GB, free: 8.516 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/1.624, allocations: 4 kB / 0.9174 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4075/2.032, allocations: 112.3 MB / 1.027 GB, free: 109.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.35/20.38, allocations: 7.797 kB / 1.027 GB, free: 109 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)