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.0009125/0.0009128, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.361/1.361, allocations: 223.2 MB / 238.9 MB, free: 5.5 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.001237/0.001237, allocations: 189 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03286/0.03286, allocations: 8.785 MB / 350.1 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003949, allocations: 10.19 kB / 413.2 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1224, allocations: 52.56 MB / 465.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02182/0.1443, allocations: 19.96 MB / 485.7 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01713/0.1615, allocations: 7.514 MB / 493.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006012/0.1676, allocations: 159.5 kB / 493.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006513/0.1741, allocations: 1.539 MB / 494.9 MB, free: 180 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.1851, allocations: 2.533 MB / 497.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005075/0.1902, allocations: 1.243 MB / 498.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01792/0.2081, allocations: 10.14 MB / 0.4969 GB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04136/0.2495, allocations: 19.07 MB / 0.5155 GB, free: 15.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008723/0.2583, allocations: 3.992 MB / 0.5194 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008735/0.2671, allocations: 4.304 MB / 0.5236 GB, free: 6.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003541/0.2706, allocations: 0.6562 MB / 0.5243 GB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005916/0.2766, allocations: 0.9878 MB / 0.5252 GB, free: 5.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004783/0.2814, allocations: 2.037 MB / 0.5272 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005683/0.2871, allocations: 2.13 MB / 0.5293 GB, free: 0.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2474/0.5345, allocations: 19.55 MB / 0.5484 GB, free: 21.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.5346, allocations: 1 kB / 0.5484 GB, free: 21.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5346, allocations: 0 / 0.5484 GB, free: 21.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000741/0.5353, allocations: 0 / 0.5484 GB, free: 21.69 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.03634/0.5717, allocations: 11.27 MB / 0.5594 GB, free: 16.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.5718, allocations: 7.969 kB / 0.5594 GB, free: 16.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007031/0.5788, allocations: 1.612 MB / 0.561 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03427/0.6131, allocations: 6.173 MB / 0.567 GB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01731/0.6304, allocations: 7.005 MB / 0.5738 GB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007781/0.6313, allocations: 0.7208 MB / 0.5745 GB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004661/0.6359, allocations: 0.9515 MB / 0.5755 GB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04473/0.6807, allocations: 16.01 MB / 0.5911 GB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003506/0.6811, allocations: 21.81 kB / 0.5911 GB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003693/0.6848, allocations: 402.4 kB / 0.5915 GB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000511/0.6853, allocations: 0.5621 MB / 0.5921 GB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03415/0.7195, allocations: 15.05 MB / 0.6068 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/0.8196, allocations: 52.74 MB / 0.6583 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/0.8395, allocations: 20.08 MB / 0.6779 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006681/0.8402, allocations: 183.5 kB / 0.6781 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.841e-05/0.8403, allocations: 82.09 kB / 0.6781 GB, free: 13.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=453): time 5.901e-06/0.8403, allocations: 0 / 0.6781 GB, free: 13.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=458): time 0.0541/0.8944, allocations: 20.9 MB / 0.6985 GB, free: 8.383 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.8946, allocations: 101.7 kB / 0.6986 GB, free: 8.273 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007589/0.9022, allocations: 4.43 MB / 0.703 GB, free: 3.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001071/0.9033, allocations: 101.7 kB / 0.7031 GB, free: 3.715 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2588/1.162, allocations: 4.199 MB / 0.7072 GB, free: 154.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002446/1.165, allocations: 1.555 MB / 0.7087 GB, free: 154.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007038/1.165, allocations: 125.9 kB / 0.7088 GB, free: 154.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004664/1.166, allocations: 0.5591 MB / 0.7093 GB, free: 153.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005869/1.172, allocations: 3.077 MB / 0.7123 GB, free: 153.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007015/1.179, allocations: 5.208 MB / 0.7174 GB, free: 150.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006452/1.185, allocations: 4.267 MB / 0.7216 GB, free: 148.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/1.185, allocations: 19.88 kB / 0.7216 GB, free: 148.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01764/1.203, allocations: 9.861 MB / 0.7313 GB, free: 144.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.433e-05/1.203, allocations: 34.22 kB / 0.7313 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/1.203, allocations: 69.38 kB / 0.7313 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003383/1.207, allocations: 1.377 MB / 0.7327 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005383/1.212, allocations: 1.394 MB / 0.7341 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/1.226, allocations: 11.92 MB / 0.7457 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004906/1.231, allocations: 357.4 kB / 0.746 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000954/1.232, allocations: 300.7 kB / 0.7463 GB, free: 135.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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.007307/1.239, allocations: 3.888 MB / 0.7501 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.24, allocations: 466.1 kB / 0.7506 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01217/1.252, allocations: 8.572 MB / 0.7589 GB, free: 124.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008507/1.261, allocations: 6.276 MB / 0.7651 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.732e-05/1.261, allocations: 16 kB / 0.7651 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.749e-05/1.261, allocations: 23.91 kB / 0.7651 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02742/1.289, allocations: 17.63 MB / 0.7823 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/1.289, allocations: 8 kB / 0.7823 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002929/1.292, allocations: 0.7996 MB / 0.7831 GB, free: 99.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002984/1.295, allocations: 1.277 MB / 0.7844 GB, free: 98.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003918/1.295, allocations: 104 kB / 0.7845 GB, free: 98.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/1.307, allocations: 10.86 MB / 0.7951 GB, free: 87.39 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.307, allocations: 11.94 kB / 0.7951 GB, free: 87.38 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.322, allocations: 11.97 MB / 0.8068 GB, free: 75.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003696/1.326, allocations: 1.104 MB / 0.8078 GB, free: 73.95 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.327, allocations: 91.94 kB / 0.8079 GB, free: 73.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/1.33, allocations: 235.8 kB / 0.8082 GB, free: 73.62 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006812/1.331, allocations: 327.6 kB / 0.8085 GB, free: 73.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/1.331, allocations: 132 kB / 0.8086 GB, free: 73.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004965/1.336, allocations: 3.052 MB / 0.8116 GB, free: 70.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.336, allocations: 0 / 0.8116 GB, free: 70.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007009/1.343, allocations: 1.725 MB / 0.8133 GB, free: 68.39 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * Single equations (assignments): 412 * 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.01543/1.358, allocations: 14.55 MB / 0.8275 GB, free: 53.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01198/1.37, allocations: 7.994 MB / 0.8353 GB, free: 45.75 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.37, allocations: 4 kB / 0.8353 GB, free: 45.74 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006435/1.377, allocations: 3.952 MB / 0.8391 GB, free: 41.76 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005507/1.382, allocations: 0.9258 MB / 0.84 GB, free: 40.85 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3466/1.729, allocations: 99.5 MB / 0.9372 GB, free: 143.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007557/1.737, allocations: 6.676 MB / 0.9437 GB, free: 141.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005903/1.743, allocations: 2.131 MB / 0.9458 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005577/1.748, allocations: 3.561 MB / 0.9493 GB, free: 137.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/1.748, allocations: 0 / 0.9493 GB, free: 137.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4216/2.17, allocations: 134.2 MB / 1.08 GB, free: 133.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/2.17, allocations: 249.8 kB / 1.081 GB, free: 133.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.521/6.691, allocations: 0 / 1.081 GB, free: 133.3 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: