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.001095/0.001095, 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.332/1.332, allocations: 222.9 MB / 239.3 MB, free: 4.555 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.001322/0.001322, allocations: 196.4 kB / 289.6 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03498/0.03498, allocations: 8.802 MB / 348.5 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 78.77 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.087, allocations: 51.57 MB / 462.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02845/0.1155, allocations: 25.41 MB / 488.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.1308, allocations: 7.944 MB / 496.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.1352, allocations: 171.5 kB / 496.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01787/0.1531, allocations: 7.645 MB / 0.4921 GB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.1635, allocations: 3.051 MB / 0.4951 GB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006081/0.1696, allocations: 2.022 MB / 0.4971 GB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.1831, allocations: 9.16 MB / 0.506 GB, free: 6.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02784/0.211, allocations: 17.33 MB / 0.5229 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008187/0.2192, allocations: 4.734 MB / 0.5276 GB, free: 324 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2152/0.4344, allocations: 5.263 MB / 0.5327 GB, free: 23.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005346/0.4398, allocations: 1.355 MB / 0.534 GB, free: 23.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009195/0.449, allocations: 1.728 MB / 0.5357 GB, free: 23.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006405/0.4555, allocations: 2.674 MB / 0.5383 GB, free: 22.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0131/0.4686, allocations: 5.081 MB / 0.5433 GB, free: 21.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02605/0.4947, allocations: 18.06 MB / 0.5609 GB, free: 16.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.4947, allocations: 0.7188 kB / 0.5609 GB, free: 16.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4947, allocations: 3.656 kB / 0.5609 GB, free: 16.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006076/0.4954, allocations: 0.9062 kB / 0.5609 GB, free: 16.39 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.05987/0.5553, allocations: 10.8 MB / 0.5715 GB, free: 9.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.5554, allocations: 10.12 kB / 0.5715 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007703/0.5631, allocations: 1.267 MB / 0.5727 GB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03431/0.5974, allocations: 5.637 MB / 0.5782 GB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/0.6118, allocations: 5.671 MB / 0.5838 GB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006211/0.6125, allocations: 0.5844 MB / 0.5843 GB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003791/0.6163, allocations: 0.7641 MB / 0.5851 GB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0337/0.65, allocations: 12.77 MB / 0.5976 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003129/0.6504, allocations: 15.89 kB / 0.5976 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002512/0.6529, allocations: 322.2 kB / 0.5979 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005053/0.6534, allocations: 0.4929 MB / 0.5984 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.6804, allocations: 12.25 MB / 0.6103 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08565/0.7661, allocations: 43.71 MB / 0.653 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02604/0.7922, allocations: 25.18 MB / 0.6776 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005363/0.7976, allocations: 2.976 MB / 0.6805 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004003/0.798, allocations: 243.5 kB / 0.6807 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00412/0.8021, allocations: 2.578 MB / 0.6833 GB, free: 9.648 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 7.825e-06/0.8022, allocations: 4 kB / 0.6833 GB, free: 9.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04103/0.8432, allocations: 18.11 MB / 0.701 GB, free: 7.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.8434, allocations: 355.5 kB / 0.7013 GB, free: 7.008 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005452/0.8489, allocations: 3.522 MB / 0.7047 GB, free: 3.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006133/0.8495, allocations: 89.7 kB / 0.7048 GB, free: 3.387 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1909/1.04, allocations: 3.368 MB / 0.7081 GB, free: 167 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/1.042, allocations: 1.353 MB / 0.7094 GB, free: 166.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002004/1.044, allocations: 1.08 MB / 0.7105 GB, free: 166.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.798e-05/1.044, allocations: 305.9 kB / 0.7108 GB, free: 166.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003525/1.048, allocations: 2.552 MB / 0.7133 GB, free: 166.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005131/1.053, allocations: 4.512 MB / 0.7177 GB, free: 164.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/1.063, allocations: 7.447 MB / 0.725 GB, free: 161.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.951e-05/1.064, allocations: 22.5 kB / 0.725 GB, free: 161.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01749/1.081, allocations: 8.274 MB / 0.7331 GB, free: 159.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/1.081, allocations: 60.52 kB / 0.7331 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/1.081, allocations: 58.84 kB / 0.7332 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002604/1.084, allocations: 1.008 MB / 0.7342 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/1.088, allocations: 1.259 MB / 0.7354 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/1.099, allocations: 8.821 MB / 0.744 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004392/1.103, allocations: 358.6 kB / 0.7443 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006316/1.104, allocations: 269.8 kB / 0.7446 GB, free: 154 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.004463/1.108, allocations: 2.901 MB / 0.7474 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007813/1.109, allocations: 394.2 kB / 0.7478 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009207/1.118, allocations: 6.182 MB / 0.7538 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/1.119, allocations: 40.52 kB / 0.7539 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/1.119, allocations: 12.5 kB / 0.7539 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.633e-05/1.119, allocations: 23.08 kB / 0.7539 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/1.142, allocations: 14.92 MB / 0.7685 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.142, allocations: 11.94 kB / 0.7685 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002449/1.144, allocations: 0.6776 MB / 0.7692 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/1.146, allocations: 0.8811 MB / 0.77 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/1.147, allocations: 87.98 kB / 0.7701 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008888/1.155, allocations: 7.76 MB / 0.7777 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.155, allocations: 11.97 kB / 0.7777 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.167, allocations: 8.775 MB / 0.7863 GB, free: 118.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002227/1.169, allocations: 0.915 MB / 0.7871 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000668/1.169, allocations: 72 kB / 0.7872 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/1.171, allocations: 199.8 kB / 0.7874 GB, free: 117.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005489/1.172, allocations: 271.1 kB / 0.7877 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/1.172, allocations: 115.8 kB / 0.7878 GB, free: 116.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00314/1.175, allocations: 2.363 MB / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.175, allocations: 1.422 kB / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005097/1.18, allocations: 1.445 MB / 0.7915 GB, free: 112.9 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.01152/1.192, allocations: 9.496 MB / 0.8008 GB, free: 103.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02473/1.217, allocations: 11.91 MB / 0.8124 GB, free: 91.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.217, allocations: 0 / 0.8124 GB, free: 91.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004596/1.221, allocations: 3.074 MB / 0.8154 GB, free: 88.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004097/1.225, allocations: 0.8083 MB / 0.8162 GB, free: 87.56 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07099/1.296, allocations: 56.26 MB / 0.8711 GB, free: 26.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00406/1.301, allocations: 5.014 MB / 0.876 GB, free: 21.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004399/1.305, allocations: 1.586 MB / 0.8776 GB, free: 20.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003181/1.308, allocations: 2.749 MB / 0.8803 GB, free: 17.26 MB / 494.1 MB Notification: Performance of SimCode: time 5.51e-07/1.308, allocations: 3.828 kB / 0.8803 GB, free: 17.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3642/1.672, allocations: 113.5 MB / 0.9911 GB, free: 87.61 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/13.17, allocations: 14.61 kB / 0.9911 GB, free: 87.59 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)