Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",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.005633/0.005634, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.502/1.502, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001911/0.001911, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03698/0.03698, allocations: 8.807 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 83.86 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.131, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.03011/0.1612, allocations: 24.86 MB / 0.5272 GB, free: 1.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2863/0.4476, allocations: 7.991 MB / 0.535 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006539/0.4542, allocations: 180.9 kB / 0.5352 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01822/0.4724, allocations: 8.377 MB / 0.5434 GB, free: 3.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.4827, allocations: 2.979 MB / 0.5463 GB, free: 2.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006261/0.489, allocations: 1.804 MB / 0.548 GB, free: 2.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01675/0.5058, allocations: 11.13 MB / 0.5589 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0393/0.5451, allocations: 23.26 MB / 0.5816 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.5564, allocations: 5.899 MB / 0.5874 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0117/0.5681, allocations: 6.446 MB / 0.5937 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006557/0.5747, allocations: 1.715 MB / 0.5953 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008837/0.5836, allocations: 2.121 MB / 0.5974 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00608/0.5897, allocations: 3.401 MB / 0.6007 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0152/0.605, allocations: 6.354 MB / 0.6069 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0341/0.6391, allocations: 23.17 MB / 0.6296 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.6392, allocations: 4 kB / 0.6296 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6392, allocations: 0 / 0.6296 GB, free: 13.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007016/0.6399, allocations: 0 / 0.6296 GB, free: 13.76 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04972/0.6896, allocations: 13.62 MB / 0.6429 GB, free: 120 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.6897, allocations: 12.02 kB / 0.6429 GB, free: 108 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007297/0.697, allocations: 1.609 MB / 0.6444 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03866/0.7357, allocations: 6.321 MB / 0.6506 GB, free: 8.238 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/0.7547, allocations: 7.276 MB / 0.6577 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009522/0.7556, allocations: 0.7263 MB / 0.6584 GB, free: 232 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004756/0.7604, allocations: 0.9437 MB / 0.6594 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05143/0.8119, allocations: 16.17 MB / 0.6752 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005197/0.8124, allocations: 15.91 kB / 0.6752 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004272/0.8167, allocations: 399 kB / 0.6755 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008733/0.8176, allocations: 0.567 MB / 0.6761 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03871/0.8563, allocations: 15.12 MB / 0.6909 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6098/1.466, allocations: 52.2 MB / 0.7418 GB, free: 119.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02173/1.488, allocations: 20.1 MB / 0.7615 GB, free: 105.4 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0066/1.495, allocations: 3.636 MB / 0.765 GB, free: 105.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004771/1.495, allocations: 175.8 kB / 0.7652 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.395e-05/1.495, allocations: 85.56 kB / 0.7653 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 5.7e-06/1.495, allocations: 0 / 0.7653 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.04901/1.544, allocations: 20.77 MB / 0.7856 GB, free: 99.53 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/1.544, allocations: 100.2 kB / 0.7856 GB, free: 99.46 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006041/1.55, allocations: 4.501 MB / 0.79 GB, free: 97.16 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008154/1.551, allocations: 100.7 kB / 0.7901 GB, free: 97.08 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002781/1.554, allocations: 4.35 MB / 0.7944 GB, free: 93.88 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002073/1.556, allocations: 1.614 MB / 0.796 GB, free: 92.48 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0018/1.558, allocations: 1.196 MB / 0.7971 GB, free: 91.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.583e-05/1.558, allocations: 305.1 kB / 0.7974 GB, free: 91.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004071/1.562, allocations: 3.066 MB / 0.8004 GB, free: 89.84 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005482/1.568, allocations: 5.214 MB / 0.8055 GB, free: 85.35 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.579, allocations: 8.864 MB / 0.8142 GB, free: 78.84 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.072e-05/1.579, allocations: 18.28 kB / 0.8142 GB, free: 78.84 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01915/1.598, allocations: 9.89 MB / 0.8238 GB, free: 69.91 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.506e-05/1.599, allocations: 36.34 kB / 0.8239 GB, free: 69.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001246/1.599, allocations: 72 kB / 0.8239 GB, free: 69.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003769/1.602, allocations: 1.399 MB / 0.8253 GB, free: 68.39 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005235/1.608, allocations: 1.38 MB / 0.8267 GB, free: 67.01 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/1.624, allocations: 12.68 MB / 0.839 GB, free: 54.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005254/1.629, allocations: 355.6 kB / 0.8394 GB, free: 53.72 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001427/1.63, allocations: 296 kB / 0.8397 GB, free: 53.43 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008585/1.639, allocations: 3.884 MB / 0.8435 GB, free: 49.54 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00181/1.641, allocations: 484.9 kB / 0.8439 GB, free: 49.06 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.656, allocations: 8.514 MB / 0.8522 GB, free: 40.48 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009978/1.666, allocations: 6.252 MB / 0.8583 GB, free: 34.21 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.213e-05/1.666, allocations: 12 kB / 0.8583 GB, free: 34.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.436e-05/1.666, allocations: 23.91 kB / 0.8584 GB, free: 34.18 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0312/1.697, allocations: 17.43 MB / 0.8754 GB, free: 16.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/1.697, allocations: 4 kB / 0.8754 GB, free: 16.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.701, allocations: 0.7996 MB / 0.8762 GB, free: 15.86 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004096/1.705, allocations: 1.298 MB / 0.8774 GB, free: 14.55 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/1.706, allocations: 108 kB / 0.8775 GB, free: 14.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/1.72, allocations: 11.57 MB / 0.8888 GB, free: 2.617 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.72, allocations: 8 kB / 0.8889 GB, free: 2.609 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02271/1.743, allocations: 11.22 MB / 0.8998 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003694/1.747, allocations: 1.111 MB / 0.9009 GB, free: 6.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001844/1.749, allocations: 87.98 kB / 0.901 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003883/1.753, allocations: 235.8 kB / 0.9012 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001408/1.754, allocations: 327.5 kB / 0.9015 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007174/1.755, allocations: 136 kB / 0.9016 GB, free: 5.344 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007375/1.762, allocations: 3.111 MB / 0.9047 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/1.762, allocations: 0 / 0.9047 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008519/1.771, allocations: 1.726 MB / 0.9064 GB, free: 0.4961 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * 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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02633/1.797, allocations: 12.23 MB / 0.9183 GB, free: 4.262 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01836/1.816, allocations: 8 MB / 0.9261 GB, free: 12.23 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/1.816, allocations: 0 / 0.9261 GB, free: 12.23 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.01011/1.826, allocations: 3.935 MB / 0.93 GB, free: 8.281 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008496/1.834, allocations: 1.047 MB / 0.931 GB, free: 7.258 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4202/2.254, allocations: 60.88 MB / 0.9904 GB, free: 166.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01019/2.265, allocations: 6.513 MB / 0.9968 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006062/2.271, allocations: 2.124 MB / 0.9989 GB, free: 159.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006364/2.277, allocations: 3.553 MB / 1.002 GB, free: 156.3 MB / 0.5607 GB Notification: Performance of SimCode: time 1.152e-06/2.277, allocations: 0 / 1.002 GB, free: 156.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2216/2.499, allocations: 139 MB / 1.138 GB, free: 17.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.25/23.75, allocations: 7.875 kB / 1.138 GB, free: 17.79 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)