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.001536/0.001536, allocations: 108 kB / 15.61 MB, free: 152 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.409/1.409, allocations: 222.9 MB / 239.3 MB, free: 4.621 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.00155/0.00155, allocations: 180.5 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03442/0.03442, allocations: 8.801 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 83.91 kB / 411.2 MB, free: 42.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1024, allocations: 51.56 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02825/0.1306, allocations: 24.85 MB / 487.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.15, allocations: 8.007 MB / 495.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006691/0.1567, allocations: 179.5 kB / 495.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02069/0.1774, allocations: 8.371 MB / 0.4923 GB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.1886, allocations: 2.986 MB / 0.4953 GB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005585/0.1942, allocations: 1.818 MB / 0.497 GB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0159/0.2101, allocations: 11.02 MB / 0.5078 GB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3199/0.53, allocations: 23.45 MB / 0.5307 GB, free: 17.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01074/0.5408, allocations: 5.877 MB / 0.5364 GB, free: 17.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01422/0.5551, allocations: 6.531 MB / 0.5428 GB, free: 16.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00768/0.5628, allocations: 1.722 MB / 0.5445 GB, free: 16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009769/0.5726, allocations: 2.129 MB / 0.5466 GB, free: 16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00934/0.582, allocations: 3.355 MB / 0.5498 GB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01665/0.5987, allocations: 6.361 MB / 0.5561 GB, free: 14.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02754/0.6262, allocations: 22.99 MB / 0.5785 GB, free: 2.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.6263, allocations: 0 / 0.5785 GB, free: 2.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.6263, allocations: 0 / 0.5785 GB, free: 2.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006836/0.627, allocations: 0 / 0.5785 GB, free: 2.184 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04875/0.6757, allocations: 13.44 MB / 0.5916 GB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.6758, allocations: 12.03 kB / 0.5916 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008144/0.684, allocations: 1.614 MB / 0.5932 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0376/0.7216, allocations: 6.221 MB / 0.5993 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01805/0.7397, allocations: 7.074 MB / 0.6062 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009504/0.7407, allocations: 0.7268 MB / 0.6069 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006005/0.7467, allocations: 0.9586 MB / 0.6078 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04917/0.7959, allocations: 16.17 MB / 0.6236 GB, free: 8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005163/0.7965, allocations: 19.91 kB / 0.6237 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/0.8005, allocations: 401.8 kB / 0.624 GB, free: 7.598 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006978/0.8012, allocations: 0.5593 MB / 0.6246 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03747/0.8387, allocations: 15.11 MB / 0.6393 GB, free: 7.91 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.103/0.9417, allocations: 52.7 MB / 0.6908 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2756/1.217, allocations: 20.1 MB / 0.7104 GB, free: 152.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006101/1.224, allocations: 3.623 MB / 0.714 GB, free: 152.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004486/1.224, allocations: 183.9 kB / 0.7142 GB, free: 152.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.24e-05/1.224, allocations: 79.97 kB / 0.7142 GB, free: 152.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 6.863e-06/1.224, allocations: 0 / 0.7142 GB, free: 152.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05293/1.277, allocations: 20.64 MB / 0.7344 GB, free: 150.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/1.277, allocations: 100.7 kB / 0.7345 GB, free: 150 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007487/1.285, allocations: 4.497 MB / 0.7389 GB, free: 148.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/1.286, allocations: 97.36 kB / 0.739 GB, free: 148.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002629/1.288, allocations: 4.209 MB / 0.7431 GB, free: 145.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003019/1.291, allocations: 1.541 MB / 0.7446 GB, free: 144 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002253/1.294, allocations: 1.194 MB / 0.7457 GB, free: 143.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.53e-05/1.294, allocations: 302.2 kB / 0.746 GB, free: 143.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004852/1.299, allocations: 3.063 MB / 0.749 GB, free: 141.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005584/1.304, allocations: 5.213 MB / 0.7541 GB, free: 138 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.314, allocations: 8.871 MB / 0.7628 GB, free: 132.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-05/1.315, allocations: 27.5 kB / 0.7628 GB, free: 132.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01778/1.332, allocations: 9.855 MB / 0.7724 GB, free: 127.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.007e-05/1.332, allocations: 32 kB / 0.7725 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000146/1.333, allocations: 68 kB / 0.7725 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/1.336, allocations: 1.4 MB / 0.7739 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005354/1.342, allocations: 1.391 MB / 0.7752 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01465/1.356, allocations: 12.66 MB / 0.7876 GB, free: 112.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005552/1.362, allocations: 351.4 kB / 0.788 GB, free: 112.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/1.363, allocations: 304.6 kB / 0.7882 GB, free: 111.9 MB / 494.1 MB 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.007591/1.371, allocations: 3.889 MB / 0.792 GB, free: 108 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/1.372, allocations: 458.4 kB / 0.7925 GB, free: 107.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.384, allocations: 8.511 MB / 0.8008 GB, free: 98.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008428/1.392, allocations: 6.253 MB / 0.8069 GB, free: 92.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/1.392, allocations: 12 kB / 0.8069 GB, free: 92.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.558e-05/1.392, allocations: 19.92 kB / 0.8069 GB, free: 92.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02737/1.42, allocations: 17.69 MB / 0.8242 GB, free: 74.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/1.42, allocations: 8 kB / 0.8242 GB, free: 74.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/1.423, allocations: 0.8041 MB / 0.825 GB, free: 74.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003343/1.426, allocations: 1.298 MB / 0.8263 GB, free: 72.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004278/1.427, allocations: 103.9 kB / 0.8264 GB, free: 72.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01414/1.441, allocations: 11.55 MB / 0.8376 GB, free: 60.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/1.441, allocations: 19.88 kB / 0.8377 GB, free: 60.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/1.457, allocations: 11.2 MB / 0.8486 GB, free: 49.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002642/1.46, allocations: 1.081 MB / 0.8496 GB, free: 48.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007282/1.46, allocations: 92 kB / 0.8497 GB, free: 48.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/1.463, allocations: 235.8 kB / 0.85 GB, free: 48.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006745/1.463, allocations: 331.5 kB / 0.8503 GB, free: 47.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000249/1.464, allocations: 136 kB / 0.8504 GB, free: 47.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004213/1.468, allocations: 3.109 MB / 0.8534 GB, free: 44.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.468, allocations: 0 / 0.8534 GB, free: 44.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006922/1.475, allocations: 1.729 MB / 0.8551 GB, free: 42.78 MB / 494.1 MB 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.01585/1.491, allocations: 12.2 MB / 0.867 GB, free: 30.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03303/1.524, allocations: 14.98 MB / 0.8817 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/1.524, allocations: 0 / 0.8817 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007047/1.531, allocations: 3.933 MB / 0.8855 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005733/1.537, allocations: 1.054 MB / 0.8865 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3636/1.9, allocations: 72.54 MB / 0.9574 GB, free: 120.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008877/1.909, allocations: 6.516 MB / 0.9637 GB, free: 115.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006022/1.915, allocations: 2.124 MB / 0.9658 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005107/1.92, allocations: 3.553 MB / 0.9693 GB, free: 110.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.382e-06/1.92, allocations: 0 / 0.9693 GB, free: 110.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4413/2.362, allocations: 140.6 MB / 1.107 GB, free: 139.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/14.55, allocations: 10.38 kB / 1.107 GB, free: 139.2 MB / 494.1 MB (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)