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: translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 107.8 kB / 16.27 MB, free: 5.98 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.559/1.559, allocations: 222.9 MB / 239.9 MB, free: 4.617 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.001485/0.001485, allocations: 199.5 kB / 290.2 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03591/0.03591, allocations: 8.796 MB / 349.2 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 76.86 kB / 411.8 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1212, allocations: 51.57 MB / 463.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.0308/0.1521, allocations: 24.84 MB / 488.2 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.1734, allocations: 8.007 MB / 496.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007003/0.1805, allocations: 179.5 kB / 496.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0218/0.2023, allocations: 8.378 MB / 0.4929 GB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01341/0.2158, allocations: 2.99 MB / 0.4958 GB, free: 1.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007198/0.223, allocations: 1.816 MB / 0.4976 GB, free: 32 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01801/0.241, allocations: 11.01 MB / 0.5083 GB, free: 4.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3287/0.5698, allocations: 23.45 MB / 0.5312 GB, free: 17.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01799/0.5879, allocations: 5.883 MB / 0.537 GB, free: 17.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0201/0.608, allocations: 6.525 MB / 0.5434 GB, free: 16.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01109/0.6192, allocations: 1.716 MB / 0.545 GB, free: 16.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/0.6332, allocations: 2.133 MB / 0.5471 GB, free: 16.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009978/0.6433, allocations: 3.355 MB / 0.5504 GB, free: 16.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01667/0.66, allocations: 6.355 MB / 0.5566 GB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02947/0.6895, allocations: 22.99 MB / 0.579 GB, free: 2.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.6895, allocations: 3 kB / 0.5791 GB, free: 2.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6895, allocations: 0 / 0.5791 GB, free: 2.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008304/0.6904, allocations: 0 / 0.5791 GB, free: 2.301 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.04948/0.7399, allocations: 13.44 MB / 0.5922 GB, free: 8.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.74, allocations: 8.031 kB / 0.5922 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03727/0.7772, allocations: 6.216 MB / 0.5983 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01727/0.7945, allocations: 7.066 MB / 0.6052 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001138/0.7957, allocations: 0.7278 MB / 0.6059 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006464/0.8022, allocations: 0.9476 MB / 0.6068 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04936/0.8516, allocations: 16.13 MB / 0.6226 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003086/0.8519, allocations: 23.64 kB / 0.6226 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003166/0.8551, allocations: 397.9 kB / 0.623 GB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006092/0.8557, allocations: 0.5592 MB / 0.6235 GB, free: 9.039 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03771/0.8935, allocations: 15.1 MB / 0.6382 GB, free: 9.926 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1068/1, allocations: 52.62 MB / 0.6896 GB, free: 5.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2654/1.266, allocations: 20.1 MB / 0.7093 GB, free: 155.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007183/1.273, allocations: 3.633 MB / 0.7128 GB, free: 155.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007531/1.274, allocations: 183.9 kB / 0.713 GB, free: 155.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/1.274, allocations: 80.78 kB / 0.7131 GB, free: 155.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 8.376e-06/1.274, allocations: 0 / 0.7131 GB, free: 155.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05435/1.328, allocations: 20.62 MB / 0.7332 GB, free: 152.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/1.328, allocations: 102.1 kB / 0.7333 GB, free: 152.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005917/1.334, allocations: 4.502 MB / 0.7377 GB, free: 151.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007555/1.335, allocations: 97.8 kB / 0.7378 GB, free: 151 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002126/1.337, allocations: 4.192 MB / 0.7419 GB, free: 147.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001606/1.339, allocations: 1.532 MB / 0.7434 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001817/1.341, allocations: 1.198 MB / 0.7445 GB, free: 146.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.069e-05/1.341, allocations: 303.8 kB / 0.7448 GB, free: 145.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004388/1.345, allocations: 3.063 MB / 0.7478 GB, free: 144.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004976/1.35, allocations: 5.214 MB / 0.7529 GB, free: 140.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009703/1.36, allocations: 8.867 MB / 0.7616 GB, free: 134.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.158e-05/1.36, allocations: 23.56 kB / 0.7616 GB, free: 134.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01687/1.377, allocations: 9.859 MB / 0.7712 GB, free: 130.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.204e-05/1.377, allocations: 32 kB / 0.7713 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/1.377, allocations: 70.34 kB / 0.7713 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003606/1.381, allocations: 1.409 MB / 0.7727 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005199/1.386, allocations: 1.39 MB / 0.7741 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/1.401, allocations: 12.66 MB / 0.7864 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005414/1.406, allocations: 359.3 kB / 0.7868 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001225/1.408, allocations: 296 kB / 0.787 GB, free: 114.2 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 (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.007155/1.415, allocations: 3.888 MB / 0.7908 GB, free: 110.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/1.416, allocations: 454.4 kB / 0.7913 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01315/1.429, allocations: 8.517 MB / 0.7996 GB, free: 101.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008978/1.438, allocations: 6.248 MB / 0.8057 GB, free: 95.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.698e-05/1.438, allocations: 13.06 kB / 0.8057 GB, free: 95.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-05/1.438, allocations: 31.91 kB / 0.8057 GB, free: 95.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03097/1.469, allocations: 17.66 MB / 0.823 GB, free: 77.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.469, allocations: 8 kB / 0.823 GB, free: 77.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.473, allocations: 0.7996 MB / 0.8238 GB, free: 76.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003341/1.476, allocations: 1.291 MB / 0.825 GB, free: 75.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006076/1.477, allocations: 108 kB / 0.8251 GB, free: 75.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/1.49, allocations: 11.56 MB / 0.8364 GB, free: 63.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.49, allocations: 13.09 kB / 0.8364 GB, free: 63.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01602/1.506, allocations: 11.19 MB / 0.8474 GB, free: 51.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002824/1.508, allocations: 1.085 MB / 0.8484 GB, free: 50.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009825/1.509, allocations: 91.98 kB / 0.8485 GB, free: 50.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002549/1.512, allocations: 235.8 kB / 0.8487 GB, free: 50.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000663/1.513, allocations: 327.5 kB / 0.8491 GB, free: 50.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002508/1.513, allocations: 136 kB / 0.8492 GB, free: 50 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004477/1.517, allocations: 3.107 MB / 0.8522 GB, free: 46.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.402e-06/1.517, allocations: 0 / 0.8522 GB, free: 46.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007494/1.525, allocations: 1.733 MB / 0.8539 GB, free: 45.16 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 (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.001705/1.527, allocations: 0.5419 MB / 0.8544 GB, free: 44.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03188/1.559, allocations: 14.98 MB / 0.8691 GB, free: 29.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/1.559, allocations: 0 / 0.8691 GB, free: 29.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007156/1.566, allocations: 3.929 MB / 0.8729 GB, free: 25.88 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005723/1.572, allocations: 1.049 MB / 0.8739 GB, free: 24.86 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2655/1.837, allocations: 17.96 MB / 0.8915 GB, free: 145.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/1.851, allocations: 6.322 MB / 0.8976 GB, free: 144.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002749/1.854, allocations: 426.8 kB / 0.898 GB, free: 144.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.665e-06/1.854, allocations: 0 / 0.898 GB, free: 144.3 MB / 494.1 MB Notification: Performance of Templates: time 0.4392/2.293, allocations: 226.9 MB / 1.12 GB, free: 123.7 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)