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.006021/0.006021, allocations: 100.7 kB / 15.73 MB, free: 5.961 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.495/1.495, allocations: 222.9 MB / 239.4 MB, free: 4.43 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.001671/0.001671, allocations: 191 kB / 289.7 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03604/0.03604, allocations: 8.801 MB / 348.7 MB, free: 4.535 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 75.88 kB / 463.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1152, allocations: 51.57 MB / 0.5029 GB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02988/0.1451, allocations: 24.87 MB / 0.5272 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.33/0.4751, allocations: 7.981 MB / 0.535 GB, free: 4.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00644/0.4816, allocations: 182.4 kB / 0.5352 GB, free: 4.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01939/0.501, allocations: 8.43 MB / 0.5434 GB, free: 3.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0125/0.5135, allocations: 3.035 MB / 0.5464 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006536/0.5201, allocations: 1.796 MB / 0.5481 GB, free: 2.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01856/0.5386, allocations: 11.12 MB / 0.559 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03809/0.5768, allocations: 23.27 MB / 0.5817 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01266/0.5895, allocations: 5.922 MB / 0.5875 GB, free: 8.141 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01472/0.6043, allocations: 6.443 MB / 0.5938 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006107/0.6104, allocations: 1.719 MB / 0.5955 GB, free: 148 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008679/0.6191, allocations: 2.122 MB / 0.5975 GB, free: 14.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007566/0.6267, allocations: 3.391 MB / 0.6009 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01862/0.6454, allocations: 6.355 MB / 0.6071 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03534/0.6808, allocations: 23.17 MB / 0.6297 GB, free: 13.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.6808, allocations: 0 / 0.6297 GB, free: 13.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6809, allocations: 0 / 0.6297 GB, free: 13.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006861/0.6815, allocations: 0 / 0.6297 GB, free: 13.54 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.04907/0.7306, allocations: 13.62 MB / 0.643 GB, free: 15.89 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/0.7307, allocations: 16.03 kB / 0.643 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007443/0.7382, allocations: 1.61 MB / 0.6446 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0362/0.7744, allocations: 6.321 MB / 0.6507 GB, free: 8.008 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/0.7922, allocations: 7.28 MB / 0.6579 GB, free: 0.707 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009026/0.7932, allocations: 0.7256 MB / 0.6586 GB, free: 15.99 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004897/0.7981, allocations: 0.9521 MB / 0.6595 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04991/0.848, allocations: 16.15 MB / 0.6753 GB, free: 14.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000552/0.8486, allocations: 27.83 kB / 0.6753 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004344/0.853, allocations: 405.3 kB / 0.6757 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007464/0.8538, allocations: 0.5632 MB / 0.6762 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03754/0.8913, allocations: 15.12 MB / 0.691 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5849/1.476, allocations: 52.19 MB / 0.742 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/1.497, allocations: 20.09 MB / 0.7616 GB, free: 105.4 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006874/1.504, allocations: 3.644 MB / 0.7651 GB, free: 105.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005607/1.505, allocations: 181.2 kB / 0.7653 GB, free: 105.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/1.505, allocations: 84.31 kB / 0.7654 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 6.071e-06/1.505, allocations: 0 / 0.7654 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.05411/1.559, allocations: 20.76 MB / 0.7857 GB, free: 99.46 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/1.559, allocations: 97.67 kB / 0.7858 GB, free: 99.39 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006412/1.566, allocations: 4.5 MB / 0.7902 GB, free: 97.09 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008629/1.566, allocations: 100.1 kB / 0.7903 GB, free: 97.01 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002378/1.569, allocations: 4.347 MB / 0.7945 GB, free: 93.81 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001897/1.571, allocations: 1.62 MB / 0.7961 GB, free: 92.41 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002126/1.573, allocations: 1.193 MB / 0.7973 GB, free: 91.73 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.098e-05/1.573, allocations: 308.4 kB / 0.7975 GB, free: 91.43 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004345/1.577, allocations: 3.062 MB / 0.8005 GB, free: 89.77 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007459/1.585, allocations: 5.214 MB / 0.8056 GB, free: 85.28 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/1.597, allocations: 8.869 MB / 0.8143 GB, free: 78.76 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.597, allocations: 20.7 kB / 0.8143 GB, free: 78.76 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01832/1.616, allocations: 9.887 MB / 0.824 GB, free: 69.56 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/1.616, allocations: 36 kB / 0.824 GB, free: 69.53 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/1.616, allocations: 68 kB / 0.8241 GB, free: 69.46 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003694/1.62, allocations: 1.405 MB / 0.8254 GB, free: 68.05 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005375/1.625, allocations: 1.38 MB / 0.8268 GB, free: 66.67 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01507/1.64, allocations: 12.68 MB / 0.8392 GB, free: 53.73 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/1.646, allocations: 359.6 kB / 0.8395 GB, free: 53.38 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/1.647, allocations: 292 kB / 0.8398 GB, free: 53.09 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.008141/1.656, allocations: 3.884 MB / 0.8436 GB, free: 49.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001464/1.657, allocations: 484.9 kB / 0.844 GB, free: 48.72 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/1.67, allocations: 8.514 MB / 0.8524 GB, free: 40.14 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009977/1.68, allocations: 6.248 MB / 0.8585 GB, free: 33.88 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.493e-05/1.68, allocations: 12 kB / 0.8585 GB, free: 33.87 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.693e-05/1.68, allocations: 23.92 kB / 0.8585 GB, free: 33.84 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03196/1.712, allocations: 17.43 MB / 0.8755 GB, free: 16.32 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/1.712, allocations: 4 kB / 0.8755 GB, free: 16.32 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003298/1.715, allocations: 0.8035 MB / 0.8763 GB, free: 15.51 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/1.719, allocations: 1.298 MB / 0.8776 GB, free: 14.21 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000845/1.72, allocations: 99.98 kB / 0.8777 GB, free: 14.11 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/1.733, allocations: 11.57 MB / 0.889 GB, free: 2.277 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.733, allocations: 8 kB / 0.889 GB, free: 2.27 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01806/1.751, allocations: 11.22 MB / 0.8999 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003119/1.754, allocations: 1.111 MB / 0.901 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/1.755, allocations: 84 kB / 0.9011 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002815/1.758, allocations: 243.7 kB / 0.9013 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008544/1.759, allocations: 327.5 kB / 0.9016 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/1.759, allocations: 136 kB / 0.9018 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005103/1.764, allocations: 3.107 MB / 0.9048 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.62e-07/1.764, allocations: 0 / 0.9048 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008882/1.773, allocations: 1.73 MB / 0.9065 GB, free: 160 kB / 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.02152/1.795, allocations: 12.22 MB / 0.9184 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01636/1.811, allocations: 7.994 MB / 0.9262 GB, free: 11.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.992e-05/1.811, allocations: 0 / 0.9262 GB, free: 11.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.009492/1.821, allocations: 3.943 MB / 0.9301 GB, free: 7.941 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007968/1.829, allocations: 1.05 MB / 0.9311 GB, free: 6.914 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.367/2.196, allocations: 60.88 MB / 0.9906 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01024/2.206, allocations: 6.515 MB / 0.9969 GB, free: 161 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005893/2.212, allocations: 2.124 MB / 0.999 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005801/2.218, allocations: 3.553 MB / 1.002 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of SimCode: time 3.807e-06/2.218, allocations: 0 / 1.002 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1931/2.411, allocations: 139 MB / 1.138 GB, free: 16.92 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.72/23.13, allocations: 10.89 kB / 1.138 GB, free: 16.91 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)