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.001423/0.001423, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.312/1.312, allocations: 222.9 MB / 238.9 MB, free: 4.746 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.001384/0.001384, allocations: 184.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0338/0.0338, allocations: 8.78 MB / 348.1 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 79.61 kB / 410.5 MB, free: 42.42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08573, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02337/0.1091, allocations: 24.41 MB / 486.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01438/0.1235, allocations: 7.942 MB / 494.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004654/0.1282, allocations: 175.4 kB / 494.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01667/0.1449, allocations: 7.925 MB / 0.4907 GB, free: 6.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009034/0.154, allocations: 2.727 MB / 0.4934 GB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005818/0.1598, allocations: 1.703 MB / 0.4951 GB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01291/0.1727, allocations: 10.96 MB / 0.5058 GB, free: 6.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02831/0.2011, allocations: 19.58 MB / 0.5249 GB, free: 3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2219/0.423, allocations: 5.074 MB / 0.5299 GB, free: 20.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0114/0.4344, allocations: 6.19 MB / 0.5359 GB, free: 19.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00638/0.4409, allocations: 1.11 MB / 0.537 GB, free: 19.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008641/0.4495, allocations: 1.517 MB / 0.5385 GB, free: 19.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006366/0.4559, allocations: 2.734 MB / 0.5411 GB, free: 19.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01412/0.4701, allocations: 5.724 MB / 0.5467 GB, free: 18.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02131/0.4914, allocations: 22.59 MB / 0.5688 GB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.4915, allocations: 3.406 kB / 0.5688 GB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4915, allocations: 0 / 0.5688 GB, free: 9.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0009169/0.4924, allocations: 0 / 0.5688 GB, free: 9.664 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.04608/0.5385, allocations: 13.45 MB / 0.5819 GB, free: 1.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.5386, allocations: 10.59 kB / 0.5819 GB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007032/0.5456, allocations: 1.611 MB / 0.5835 GB, free: 248 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0348/0.5805, allocations: 6.226 MB / 0.5896 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/0.5956, allocations: 7.074 MB / 0.5965 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000651/0.5963, allocations: 0.7236 MB / 0.5972 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004647/0.6009, allocations: 0.9577 MB / 0.5981 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04375/0.6447, allocations: 16.18 MB / 0.6139 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002437/0.645, allocations: 11.89 kB / 0.614 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001759/0.6467, allocations: 401.7 kB / 0.6143 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004907/0.6472, allocations: 0.5676 MB / 0.6149 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03087/0.6781, allocations: 15.12 MB / 0.6297 GB, free: 3.027 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.087/0.7652, allocations: 52.69 MB / 0.6811 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/0.7832, allocations: 20.12 MB / 0.7008 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005489/0.7887, allocations: 3.668 MB / 0.7043 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003801/0.7891, allocations: 185.8 kB / 0.7045 GB, free: 4.254 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.195e-05/0.7892, allocations: 78.09 kB / 0.7046 GB, free: 4.168 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 5.701e-06/0.7892, allocations: 0 / 0.7046 GB, free: 4.168 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.2236/1.013, allocations: 20.72 MB / 0.7248 GB, free: 156.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/1.013, allocations: 104.2 kB / 0.7249 GB, free: 156.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/1.02, allocations: 4.493 MB / 0.7293 GB, free: 156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007121/1.02, allocations: 97.14 kB / 0.7294 GB, free: 155.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002314/1.023, allocations: 4.206 MB / 0.7335 GB, free: 153.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001548/1.024, allocations: 1.55 MB / 0.735 GB, free: 152.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001911/1.026, allocations: 1.202 MB / 0.7362 GB, free: 152.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/1.026, allocations: 302.2 kB / 0.7365 GB, free: 152.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00444/1.031, allocations: 3.097 MB / 0.7395 GB, free: 151.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005844/1.037, allocations: 5.255 MB / 0.7446 GB, free: 147.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009958/1.047, allocations: 8.929 MB / 0.7534 GB, free: 142 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.717e-05/1.047, allocations: 23.39 kB / 0.7534 GB, free: 142 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01547/1.062, allocations: 9.914 MB / 0.7631 GB, free: 138 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/1.062, allocations: 36 kB / 0.7631 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/1.062, allocations: 68 kB / 0.7632 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003347/1.066, allocations: 1.38 MB / 0.7645 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004349/1.07, allocations: 1.387 MB / 0.7659 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01397/1.084, allocations: 11.65 MB / 0.7772 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005151/1.089, allocations: 356.6 kB / 0.7776 GB, free: 124.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.091, allocations: 292 kB / 0.7779 GB, free: 123.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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007223/1.098, allocations: 3.892 MB / 0.7817 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/1.099, allocations: 463.8 kB / 0.7821 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.112, allocations: 8.568 MB / 0.7905 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008642/1.121, allocations: 6.303 MB / 0.7966 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.919e-05/1.121, allocations: 13.53 kB / 0.7966 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.495e-05/1.121, allocations: 23.86 kB / 0.7967 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02648/1.148, allocations: 17.77 MB / 0.814 GB, free: 86.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/1.148, allocations: 9.172 kB / 0.814 GB, free: 86.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/1.151, allocations: 0.7996 MB / 0.8148 GB, free: 85.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003182/1.154, allocations: 1.29 MB / 0.8161 GB, free: 84.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007599/1.155, allocations: 108 kB / 0.8162 GB, free: 84.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/1.167, allocations: 10.57 MB / 0.8265 GB, free: 73.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.167, allocations: 11.94 kB / 0.8265 GB, free: 73.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01473/1.181, allocations: 11.29 MB / 0.8375 GB, free: 62.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002478/1.184, allocations: 1.089 MB / 0.8386 GB, free: 61.11 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007556/1.185, allocations: 96.88 kB / 0.8387 GB, free: 61.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/1.187, allocations: 235.7 kB / 0.8389 GB, free: 60.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006658/1.188, allocations: 331.5 kB / 0.8392 GB, free: 60.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002821/1.188, allocations: 136 kB / 0.8393 GB, free: 60.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00429/1.192, allocations: 3.107 MB / 0.8424 GB, free: 57.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.192, allocations: 0 / 0.8424 GB, free: 57.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007051/1.199, allocations: 1.731 MB / 0.8441 GB, free: 55.5 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01674/1.216, allocations: 12.31 MB / 0.8561 GB, free: 43.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01141/1.227, allocations: 8.026 MB / 0.8639 GB, free: 35.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.227, allocations: 0.9375 kB / 0.8639 GB, free: 35.18 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005859/1.233, allocations: 3.983 MB / 0.8678 GB, free: 31.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004988/1.238, allocations: 0.993 MB / 0.8688 GB, free: 30.19 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.307/1.545, allocations: 76.7 MB / 0.9437 GB, free: 133.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007522/1.553, allocations: 6.522 MB / 0.9501 GB, free: 129.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005162/1.558, allocations: 2.109 MB / 0.9521 GB, free: 127.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004126/1.562, allocations: 3.502 MB / 0.9555 GB, free: 124.4 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/1.562, allocations: 0 / 0.9555 GB, free: 124.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/1.889, allocations: 138.2 MB / 1.09 GB, free: 127.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/1.889, allocations: 261 kB / 1.091 GB, free: 127.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.487/6.377, allocations: 0 / 1.091 GB, free: 127.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 & /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)