Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06118/0.06118, allocations: 8.719 MB / 16.79 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 221.5 MB / 240.9 MB, free: 13.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 95.05 kB / 293.9 MB, free: 7.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.071e-05, allocations: 0 / 352.7 MB, free: 1.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1233, allocations: 52.55 MB / 405.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5629, allocations: 109.5 MB / 0.5027 GB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5632, allocations: 81.17 kB / 0.5028 GB, free: 9.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5906/1.154, allocations: 79.91 MB / 0.5808 GB, free: 75.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.154, allocations: 0 / 0.5808 GB, free: 75.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003967/1.154, allocations: 84.67 kB / 0.5809 GB, free: 75.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01163/1.166, allocations: 3.232 MB / 0.5841 GB, free: 74.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.166, allocations: 13.33 kB / 0.5841 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005041/1.171, allocations: 0.7435 MB / 0.5848 GB, free: 74.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009475/1.181, allocations: 3.317 MB / 0.588 GB, free: 73.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/1.181, allocations: 101.8 kB / 0.5881 GB, free: 73.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/1.182, allocations: 204.4 kB / 0.5883 GB, free: 73.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008384/1.191, allocations: 3.109 MB / 0.5914 GB, free: 73.85 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/1.201, allocations: 3.691 MB / 0.595 GB, free: 73.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/1.202, allocations: 9.75 kB / 0.595 GB, free: 73.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008316/1.203, allocations: 3.219 kB / 0.595 GB, free: 73.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/1.203, allocations: 147.3 kB / 0.5951 GB, free: 73.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03075/1.233, allocations: 13.25 MB / 0.6081 GB, free: 70.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007952/1.241, allocations: 6.488 MB / 0.6144 GB, free: 65.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/1.245, allocations: 1.289 MB / 0.6157 GB, free: 65.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007819/1.253, allocations: 3.523 MB / 0.6191 GB, free: 65.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/1.254, allocations: 0.867 MB / 0.62 GB, free: 64.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 1.152e-05/1.254, allocations: 0 / 0.62 GB, free: 64.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=144): time 0.01028/1.264, allocations: 4.378 MB / 0.6242 GB, free: 63.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/1.265, allocations: 224.1 kB / 0.6244 GB, free: 63.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003533/1.268, allocations: 1.26 MB / 0.6257 GB, free: 63.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/1.268, allocations: 27.36 kB / 0.6257 GB, free: 63.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/1.27, allocations: 1.468 MB / 0.6271 GB, free: 62.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005638/1.271, allocations: 483.3 kB / 0.6276 GB, free: 62.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/1.271, allocations: 0 / 0.6276 GB, free: 62.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/1.271, allocations: 386.8 kB / 0.628 GB, free: 61.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/1.273, allocations: 0.61 MB / 0.6286 GB, free: 61.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/1.274, allocations: 1.244 MB / 0.6298 GB, free: 61.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/1.277, allocations: 0.9825 MB / 0.6307 GB, free: 60.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.824e-05/1.277, allocations: 5.375 kB / 0.6307 GB, free: 60.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.005756/1.282, allocations: 2.456 MB / 0.6331 GB, free: 59.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/1.282, allocations: 17.5 kB / 0.6332 GB, free: 59.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-05/1.282, allocations: 22.17 kB / 0.6332 GB, free: 59.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/1.283, allocations: 349.7 kB / 0.6335 GB, free: 59.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/1.285, allocations: 381.6 kB / 0.6339 GB, free: 59.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006048/1.291, allocations: 7.405 MB / 0.6411 GB, free: 53.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/1.293, allocations: 60.38 kB / 0.6412 GB, free: 53.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/1.293, allocations: 77.28 kB / 0.6412 GB, free: 53.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004961/1.294, allocations: 169 kB / 0.6414 GB, free: 53.16 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004251/1.298, allocations: 2.124 MB / 0.6435 GB, free: 52.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006785/1.298, allocations: 178.3 kB / 0.6436 GB, free: 52.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/1.303, allocations: 2.256 MB / 0.6458 GB, free: 51.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/1.303, allocations: 14.78 kB / 0.6459 GB, free: 51.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/1.303, allocations: 8.344 kB / 0.6459 GB, free: 51.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/1.303, allocations: 9.984 kB / 0.6459 GB, free: 51.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009817/1.313, allocations: 4.606 MB / 0.6504 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/1.313, allocations: 2.812 kB / 0.6504 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007762/1.314, allocations: 170.1 kB / 0.6505 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/1.315, allocations: 0.5074 MB / 0.651 GB, free: 48.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/1.315, allocations: 26.61 kB / 0.6511 GB, free: 48.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009358/1.324, allocations: 11.63 MB / 0.6624 GB, free: 39.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/1.325, allocations: 3.938 kB / 0.6624 GB, free: 39.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006539/1.331, allocations: 3.245 MB / 0.6656 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.333, allocations: 407.1 kB / 0.666 GB, free: 37.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007266/1.333, allocations: 15.62 kB / 0.666 GB, free: 37.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/1.335, allocations: 51.91 kB / 0.666 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003955/1.335, allocations: 117 kB / 0.6662 GB, free: 37.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.335, allocations: 41.95 kB / 0.6662 GB, free: 37.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002139/1.338, allocations: 0.934 MB / 0.6671 GB, free: 36.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.338, allocations: 0 / 0.6671 GB, free: 36.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00356/1.341, allocations: 0.5511 MB / 0.6676 GB, free: 36.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005812/1.347, allocations: 4.435 MB / 0.672 GB, free: 33.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003515/1.351, allocations: 2.208 MB / 0.6741 GB, free: 32.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.351, allocations: 0 / 0.6741 GB, free: 32.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/1.353, allocations: 1.612 MB / 0.6757 GB, free: 31.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/1.356, allocations: 405.4 kB / 0.6761 GB, free: 31.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/1.369, allocations: 5.489 MB / 0.6814 GB, free: 29.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/1.372, allocations: 2.389 MB / 0.6838 GB, free: 28.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001642/1.374, allocations: 386.1 kB / 0.6842 GB, free: 28.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/1.375, allocations: 1.147 MB / 0.6853 GB, free: 27.14 MB / 442.7 MB Notification: Performance of SimCode: time 9.31e-07/1.375, allocations: 0 / 0.6853 GB, free: 27.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.089/1.464, allocations: 45.73 MB / 0.7299 GB, free: 368 kB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/1.464, allocations: 136.8 kB / 0.7301 GB, free: 168 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.347/4.812, allocations: 0 / 0.7301 GB, free: 168 kB / 442.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)