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.0008083/0.0008083, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.372/1.372, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.001024/0.001024, allocations: 176.6 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03271/0.03271, allocations: 8.804 MB / 350.5 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003578, allocations: 13.56 kB / 413.9 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.0918, allocations: 52.56 MB / 466.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02253/0.1144, allocations: 23.35 MB / 489.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.1306, allocations: 7.844 MB / 497.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005722/0.1364, allocations: 167.5 kB / 497.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.1427, allocations: 1.808 MB / 499.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009323/0.1521, allocations: 2.7 MB / 0.4906 GB, free: 9.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00471/0.1568, allocations: 1.59 MB / 0.4921 GB, free: 7.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01297/0.1698, allocations: 10.95 MB / 0.5028 GB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04256/0.2123, allocations: 23.51 MB / 0.5258 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00905/0.2214, allocations: 4.169 MB / 0.5298 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2157/0.4371, allocations: 4.994 MB / 0.5347 GB, free: 21.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002912/0.4401, allocations: 0.661 MB / 0.5354 GB, free: 21.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005802/0.4459, allocations: 1.068 MB / 0.5364 GB, free: 21.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002985/0.4489, allocations: 2.098 MB / 0.5385 GB, free: 21.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0127/0.4616, allocations: 5.001 MB / 0.5433 GB, free: 19.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02474/0.4864, allocations: 21.72 MB / 0.5646 GB, free: 10.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4864, allocations: 0 / 0.5646 GB, free: 10.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4864, allocations: 0 / 0.5646 GB, free: 10.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006509/0.4871, allocations: 2.781 kB / 0.5646 GB, free: 10.33 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.03261/0.5197, allocations: 11.24 MB / 0.5755 GB, free: 4.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.5198, allocations: 9.031 kB / 0.5755 GB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006236/0.526, allocations: 1.611 MB / 0.5771 GB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03293/0.559, allocations: 6.243 MB / 0.5832 GB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.5728, allocations: 7.148 MB / 0.5902 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005805/0.5734, allocations: 0.7248 MB / 0.5909 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003728/0.5772, allocations: 0.9599 MB / 0.5918 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0402/0.6174, allocations: 16.19 MB / 0.6077 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004585/0.6179, allocations: 15.91 kB / 0.6077 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003362/0.6213, allocations: 401.9 kB / 0.6081 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006694/0.622, allocations: 0.5593 MB / 0.6086 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03494/0.6569, allocations: 15.15 MB / 0.6234 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/0.7571, allocations: 52.83 MB / 0.675 GB, free: 9.992 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0229/0.7801, allocations: 20.13 MB / 0.6946 GB, free: 3.91 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006898/0.787, allocations: 3.68 MB / 0.6982 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005816/0.7876, allocations: 191.8 kB / 0.6984 GB, free: 36 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.7878, allocations: 78.14 kB / 0.6985 GB, free: 15.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 1.028e-05/0.7878, allocations: 3.656 kB / 0.6985 GB, free: 15.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.2485/1.036, allocations: 20.79 MB / 0.7188 GB, free: 161.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/1.036, allocations: 99.28 kB / 0.7189 GB, free: 161.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00963/1.046, allocations: 4.491 MB / 0.7233 GB, free: 161.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008641/1.047, allocations: 99.66 kB / 0.7234 GB, free: 161.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002831/1.05, allocations: 4.206 MB / 0.7275 GB, free: 158.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001663/1.051, allocations: 1.549 MB / 0.729 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008374/1.052, allocations: 497.7 kB / 0.7295 GB, free: 157.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/1.052, allocations: 303.2 kB / 0.7298 GB, free: 157.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004866/1.057, allocations: 3.11 MB / 0.7328 GB, free: 157.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006398/1.064, allocations: 5.248 MB / 0.7379 GB, free: 154.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/1.074, allocations: 8.956 MB / 0.7467 GB, free: 148.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.781e-05/1.074, allocations: 19.38 kB / 0.7467 GB, free: 148.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01425/1.088, allocations: 9.927 MB / 0.7564 GB, free: 144.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.995e-05/1.088, allocations: 35.16 kB / 0.7564 GB, free: 144.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/1.089, allocations: 70.19 kB / 0.7565 GB, free: 144.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003325/1.092, allocations: 1.385 MB / 0.7578 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004954/1.097, allocations: 1.385 MB / 0.7592 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/1.11, allocations: 11.67 MB / 0.7706 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004759/1.115, allocations: 355.4 kB / 0.7709 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008529/1.116, allocations: 295.5 kB / 0.7712 GB, free: 134 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.00694/1.123, allocations: 3.892 MB / 0.775 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.124, allocations: 470.7 kB / 0.7754 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01234/1.137, allocations: 8.581 MB / 0.7838 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008683/1.145, allocations: 6.315 MB / 0.79 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/1.145, allocations: 12.88 kB / 0.79 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.436e-05/1.146, allocations: 23.91 kB / 0.79 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0269/1.172, allocations: 17.77 MB / 0.8074 GB, free: 98.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.252e-05/1.172, allocations: 8 kB / 0.8074 GB, free: 98.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003132/1.176, allocations: 0.8103 MB / 0.8082 GB, free: 97.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003212/1.179, allocations: 1.28 MB / 0.8094 GB, free: 96.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008104/1.18, allocations: 111.9 kB / 0.8095 GB, free: 96.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/1.192, allocations: 10.59 MB / 0.8199 GB, free: 85.39 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.192, allocations: 8 kB / 0.8199 GB, free: 85.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/1.208, allocations: 11.31 MB / 0.8309 GB, free: 73.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002999/1.211, allocations: 1.116 MB / 0.832 GB, free: 72.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.212, allocations: 91.98 kB / 0.8321 GB, free: 72.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/1.215, allocations: 239.8 kB / 0.8323 GB, free: 72.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006747/1.215, allocations: 327.5 kB / 0.8327 GB, free: 72.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/1.216, allocations: 139.9 kB / 0.8328 GB, free: 72.01 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005086/1.221, allocations: 3.107 MB / 0.8358 GB, free: 68.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.221, allocations: 0 / 0.8358 GB, free: 68.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008803/1.23, allocations: 1.729 MB / 0.8375 GB, free: 67.17 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.0187/1.248, allocations: 12.32 MB / 0.8495 GB, free: 54.85 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01379/1.262, allocations: 8.039 MB / 0.8574 GB, free: 46.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.262, allocations: 8.312 kB / 0.8574 GB, free: 46.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006948/1.269, allocations: 3.991 MB / 0.8613 GB, free: 42.78 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01019/1.279, allocations: 1.004 MB / 0.8623 GB, free: 41.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3553/1.635, allocations: 76.82 MB / 0.9373 GB, free: 141.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008287/1.643, allocations: 6.515 MB / 0.9437 GB, free: 139.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006345/1.649, allocations: 2.123 MB / 0.9457 GB, free: 139 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006224/1.656, allocations: 3.502 MB / 0.9492 GB, free: 136.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.683e-06/1.656, allocations: 0 / 0.9492 GB, free: 136.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3707/2.026, allocations: 136.1 MB / 1.082 GB, free: 118.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/2.027, allocations: 255.6 kB / 1.082 GB, free: 118.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.579/6.605, allocations: 0 / 1.082 GB, free: 118.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)