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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0007509/0.000751, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.363/1.363, allocations: 223.3 MB / 239 MB, free: 5.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.001484/0.001484, allocations: 188.5 kB / 290.3 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03265/0.03265, allocations: 8.792 MB / 350.2 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003786, allocations: 12.08 kB / 413.3 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1091, allocations: 52.57 MB / 465.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02193/0.131, allocations: 21.65 MB / 487.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0174/0.1485, allocations: 7.356 MB / 494.9 MB, free: 376 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00574/0.1542, allocations: 163.5 kB / 495 MB, free: 212 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007002/0.1613, allocations: 1.375 MB / 496.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01176/0.1731, allocations: 2.448 MB / 498.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005259/0.1784, allocations: 1.233 MB / 0.4883 GB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0189/0.1973, allocations: 13.5 MB / 0.5015 GB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04298/0.2403, allocations: 19.3 MB / 0.5204 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008794/0.2491, allocations: 4.358 MB / 0.5246 GB, free: 5.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009601/0.2588, allocations: 4.791 MB / 0.5293 GB, free: 1.023 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003594/0.2624, allocations: 0.6602 MB / 0.53 GB, free: 372 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2517/0.5141, allocations: 1.045 MB / 0.531 GB, free: 24.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003852/0.518, allocations: 2.066 MB / 0.533 GB, free: 24.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004917/0.523, allocations: 2.128 MB / 0.5351 GB, free: 24.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02337/0.5464, allocations: 19.61 MB / 0.5542 GB, free: 17.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.5464, allocations: 2.688 kB / 0.5542 GB, free: 17.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5464, allocations: 0 / 0.5542 GB, free: 17.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008077/0.5472, allocations: 0 / 0.5542 GB, free: 17.59 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.03795/0.5852, allocations: 11.34 MB / 0.5653 GB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5853, allocations: 8.5 kB / 0.5653 GB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007985/0.5933, allocations: 1.621 MB / 0.5669 GB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03391/0.6272, allocations: 6.237 MB / 0.573 GB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01593/0.6432, allocations: 7.001 MB / 0.5798 GB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006862/0.6439, allocations: 0.7302 MB / 0.5805 GB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005094/0.649, allocations: 0.9574 MB / 0.5815 GB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04542/0.6944, allocations: 16.11 MB / 0.5972 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003311/0.6948, allocations: 11.91 kB / 0.5972 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00373/0.6985, allocations: 403.9 kB / 0.5976 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007344/0.6993, allocations: 0.5551 MB / 0.5981 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0384/0.7377, allocations: 15.06 MB / 0.6128 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09109/0.8288, allocations: 52.81 MB / 0.6644 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01958/0.8484, allocations: 20.09 MB / 0.684 GB, free: 5.977 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006334/0.8548, allocations: 3.686 MB / 0.6876 GB, free: 2.289 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004691/0.8553, allocations: 178.1 kB / 0.6878 GB, free: 2.109 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.152e-05/0.8554, allocations: 78.09 kB / 0.6879 GB, free: 2.023 MB / 462.1 MB Notification: Performance of pre-optimization done (n=453): time 5.851e-06/0.8554, allocations: 4 kB / 0.6879 GB, free: 2.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=458): time 0.3148/1.17, allocations: 22.98 MB / 0.7103 GB, free: 151 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/1.17, allocations: 100 kB / 0.7104 GB, free: 150.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009517/1.18, allocations: 4.464 MB / 0.7148 GB, free: 150.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001251/1.181, allocations: 95.36 kB / 0.7149 GB, free: 150.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002626/1.184, allocations: 4.208 MB / 0.719 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001907/1.186, allocations: 1.552 MB / 0.7205 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003619/1.186, allocations: 126.9 kB / 0.7206 GB, free: 147 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003388/1.186, allocations: 0.5576 MB / 0.7212 GB, free: 146.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004886/1.191, allocations: 3.083 MB / 0.7242 GB, free: 145.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005442/1.197, allocations: 5.223 MB / 0.7293 GB, free: 141.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006083/1.203, allocations: 4.279 MB / 0.7334 GB, free: 139.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.833e-05/1.203, allocations: 19.56 kB / 0.7335 GB, free: 139.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01781/1.221, allocations: 9.875 MB / 0.7431 GB, free: 135.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.673e-05/1.221, allocations: 33.25 kB / 0.7431 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/1.221, allocations: 70.38 kB / 0.7432 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003294/1.224, allocations: 1.386 MB / 0.7446 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005377/1.23, allocations: 1.389 MB / 0.7459 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/1.244, allocations: 11.64 MB / 0.7573 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005171/1.249, allocations: 353.9 kB / 0.7576 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.25, allocations: 299.2 kB / 0.7579 GB, free: 124.6 MB / 478.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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007614/1.258, allocations: 3.887 MB / 0.7617 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.259, allocations: 462.2 kB / 0.7621 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/1.271, allocations: 8.575 MB / 0.7705 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00885/1.28, allocations: 6.284 MB / 0.7767 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/1.28, allocations: 12 kB / 0.7767 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.173e-05/1.28, allocations: 23.91 kB / 0.7767 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02625/1.307, allocations: 17.74 MB / 0.794 GB, free: 88.33 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/1.307, allocations: 11.95 kB / 0.794 GB, free: 88.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002843/1.31, allocations: 0.8074 MB / 0.7948 GB, free: 87.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002852/1.312, allocations: 1.281 MB / 0.7961 GB, free: 86.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/1.313, allocations: 108 kB / 0.7962 GB, free: 86.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01172/1.324, allocations: 10.56 MB / 0.8065 GB, free: 75.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.485e-06/1.325, allocations: 11.94 kB / 0.8065 GB, free: 75.29 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/1.34, allocations: 11.27 MB / 0.8175 GB, free: 63.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002748/1.343, allocations: 1.104 MB / 0.8186 GB, free: 62.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001401/1.344, allocations: 95.98 kB / 0.8187 GB, free: 62.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/1.347, allocations: 231.8 kB / 0.8189 GB, free: 62.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006903/1.348, allocations: 335.5 kB / 0.8192 GB, free: 62.11 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000298/1.348, allocations: 137.7 kB / 0.8193 GB, free: 61.97 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005094/1.353, allocations: 3.084 MB / 0.8223 GB, free: 58.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.2e-07/1.353, allocations: 0 / 0.8223 GB, free: 58.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008707/1.362, allocations: 1.725 MB / 0.824 GB, free: 57.16 MB / 478.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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01744/1.38, allocations: 12.28 MB / 0.836 GB, free: 44.88 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01355/1.393, allocations: 7.999 MB / 0.8438 GB, free: 36.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.393, allocations: 4 kB / 0.8438 GB, free: 36.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006958/1.4, allocations: 3.976 MB / 0.8477 GB, free: 32.87 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006866/1.407, allocations: 1.012 MB / 0.8487 GB, free: 31.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3455/1.753, allocations: 53.31 MB / 0.9008 GB, free: 165.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008587/1.761, allocations: 6.522 MB / 0.9071 GB, free: 164.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006296/1.768, allocations: 2.108 MB / 0.9092 GB, free: 164.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007576/1.775, allocations: 3.568 MB / 0.9127 GB, free: 162.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.463e-06/1.775, allocations: 2.656 kB / 0.9127 GB, free: 162.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1732/1.948, allocations: 135.1 MB / 1.045 GB, free: 38.51 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/1.949, allocations: 243.5 kB / 1.045 GB, free: 38.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.524/6.472, allocations: 0 / 1.045 GB, free: 38.25 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: