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.00579/0.005791, allocations: 105.4 kB / 15.73 MB, free: 5.984 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.468/1.468, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001674/0.001674, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03516/0.03516, allocations: 8.8 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 79.86 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1222, allocations: 51.56 MB / 0.5029 GB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02773/0.1499, allocations: 24.85 MB / 0.5272 GB, free: 1.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3079/0.4578, allocations: 7.992 MB / 0.535 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005926/0.4638, allocations: 182 kB / 0.5352 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01899/0.4828, allocations: 8.373 MB / 0.5433 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.4951, allocations: 2.987 MB / 0.5463 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006677/0.5018, allocations: 1.813 MB / 0.548 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01722/0.519, allocations: 11.11 MB / 0.5589 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04386/0.5629, allocations: 23.26 MB / 0.5816 GB, free: 14.13 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.013/0.5759, allocations: 5.92 MB / 0.5874 GB, free: 8.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0127/0.5887, allocations: 6.451 MB / 0.5937 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005485/0.5942, allocations: 1.719 MB / 0.5954 GB, free: 348 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008572/0.6028, allocations: 2.125 MB / 0.5974 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006608/0.6094, allocations: 3.388 MB / 0.6007 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01416/0.6236, allocations: 6.364 MB / 0.607 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02952/0.6532, allocations: 23.1 MB / 0.6295 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.6532, allocations: 0 / 0.6295 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6532, allocations: 0 / 0.6295 GB, free: 13.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006647/0.6539, allocations: 0 / 0.6295 GB, free: 13.8 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.04341/0.6973, allocations: 13.38 MB / 0.6426 GB, free: 416 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.6974, allocations: 12.03 kB / 0.6426 GB, free: 404 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006932/0.7043, allocations: 1.619 MB / 0.6442 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03512/0.7395, allocations: 6.264 MB / 0.6503 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/0.7551, allocations: 7.26 MB / 0.6574 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006966/0.7558, allocations: 0.7261 MB / 0.6581 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003846/0.7596, allocations: 0.9444 MB / 0.659 GB, free: 15.63 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04477/0.8044, allocations: 16.17 MB / 0.6748 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005118/0.805, allocations: 19.84 kB / 0.6748 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003924/0.8089, allocations: 398.5 kB / 0.6752 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005929/0.8095, allocations: 0.5631 MB / 0.6757 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03632/0.8459, allocations: 15.12 MB / 0.6905 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3606/1.207, allocations: 52.07 MB / 0.7414 GB, free: 122.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01988/1.226, allocations: 20.09 MB / 0.761 GB, free: 108.7 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006407/1.233, allocations: 3.646 MB / 0.7645 GB, free: 108.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005043/1.233, allocations: 181.4 kB / 0.7647 GB, free: 108.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.553e-05/1.234, allocations: 82.03 kB / 0.7648 GB, free: 108.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=447): time 7.284e-06/1.234, allocations: 0 / 0.7648 GB, free: 108.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=452): time 0.04733/1.281, allocations: 20.63 MB / 0.7849 GB, free: 102.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/1.281, allocations: 99.95 kB / 0.785 GB, free: 102.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00829/1.289, allocations: 4.495 MB / 0.7894 GB, free: 100.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0012/1.291, allocations: 100.8 kB / 0.7895 GB, free: 100.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003171/1.294, allocations: 4.215 MB / 0.7936 GB, free: 96.73 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002069/1.296, allocations: 1.532 MB / 0.7951 GB, free: 95.41 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/1.298, allocations: 1.188 MB / 0.7963 GB, free: 94.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.662e-05/1.298, allocations: 301.1 kB / 0.7966 GB, free: 94.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003972/1.302, allocations: 3.071 MB / 0.7996 GB, free: 92.77 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004621/1.306, allocations: 5.211 MB / 0.8047 GB, free: 88.26 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.316, allocations: 8.869 MB / 0.8133 GB, free: 81.63 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.899e-05/1.317, allocations: 19.44 kB / 0.8134 GB, free: 81.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01668/1.333, allocations: 9.862 MB / 0.823 GB, free: 72.45 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.681e-05/1.333, allocations: 36 kB / 0.823 GB, free: 72.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/1.333, allocations: 68 kB / 0.8231 GB, free: 72.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/1.337, allocations: 1.4 MB / 0.8245 GB, free: 70.94 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005341/1.343, allocations: 1.392 MB / 0.8258 GB, free: 69.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01601/1.359, allocations: 12.65 MB / 0.8382 GB, free: 56.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005132/1.364, allocations: 359.4 kB / 0.8385 GB, free: 56.28 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/1.365, allocations: 292.1 kB / 0.8388 GB, free: 55.99 MB / 0.5137 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.007861/1.373, allocations: 3.896 MB / 0.8426 GB, free: 52.08 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002014/1.375, allocations: 458.4 kB / 0.843 GB, free: 51.63 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01584/1.391, allocations: 8.51 MB / 0.8513 GB, free: 43.06 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01064/1.402, allocations: 6.252 MB / 0.8574 GB, free: 36.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.311e-05/1.402, allocations: 12 kB / 0.8575 GB, free: 36.78 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-05/1.402, allocations: 23.91 kB / 0.8575 GB, free: 36.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03699/1.439, allocations: 17.42 MB / 0.8745 GB, free: 19.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.814e-05/1.439, allocations: 8 kB / 0.8745 GB, free: 19.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003534/1.442, allocations: 0.8042 MB / 0.8753 GB, free: 18.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003639/1.446, allocations: 1.29 MB / 0.8765 GB, free: 17.14 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009514/1.447, allocations: 104 kB / 0.8766 GB, free: 17.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/1.462, allocations: 11.55 MB / 0.8879 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/1.462, allocations: 11.94 kB / 0.8879 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02188/1.484, allocations: 11.19 MB / 0.8989 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003907/1.488, allocations: 1.085 MB / 0.8999 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/1.49, allocations: 84 kB / 0.9 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004014/1.494, allocations: 243.7 kB / 0.9002 GB, free: 8.441 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001519/1.496, allocations: 328.4 kB / 0.9006 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008429/1.496, allocations: 140 kB / 0.9007 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008213/1.505, allocations: 3.103 MB / 0.9037 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.505, allocations: 0 / 0.9037 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01182/1.517, allocations: 1.724 MB / 0.9054 GB, free: 3.152 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.0283/1.545, allocations: 12.21 MB / 0.9173 GB, free: 6.945 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01811/1.563, allocations: 7.977 MB / 0.9251 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.617e-05/1.563, allocations: 4 kB / 0.9251 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009893/1.573, allocations: 3.939 MB / 0.929 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009538/1.583, allocations: 1.054 MB / 0.93 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3931/1.976, allocations: 60.59 MB / 0.9892 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00757/1.983, allocations: 6.507 MB / 0.9955 GB, free: 174.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005598/1.989, allocations: 2.127 MB / 0.9976 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005521/1.994, allocations: 3.553 MB / 1.001 GB, free: 170.2 MB / 0.5606 GB Notification: Performance of SimCode: time 3.496e-06/1.995, allocations: 0 / 1.001 GB, free: 170.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2463/2.241, allocations: 139.6 MB / 1.137 GB, free: 31.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.92/23.16, allocations: 7.938 kB / 1.137 GB, free: 31.08 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)