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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03853/0.03853, allocations: 8.796 MB / 25.53 MB, free: 3.746 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 251.3 MB, free: 7.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009519/0.0009519, allocations: 92.22 kB / 303.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001222, allocations: 63.91 kB / 366 MB, free: 176 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1993, allocations: 51.54 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02009/0.2195, allocations: 24.43 MB / 442 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.2351, allocations: 7.941 MB / 449.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004956/0.2401, allocations: 171.4 kB / 450.1 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01708/0.2572, allocations: 7.937 MB / 458 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009235/0.2665, allocations: 2.726 MB / 460.7 MB, free: 9.562 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005985/0.2725, allocations: 1.704 MB / 462.4 MB, free: 7.871 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.2876, allocations: 11.12 MB / 473.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03241/0.3201, allocations: 19.56 MB / 493.1 MB, free: 8.988 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009746/0.3299, allocations: 5.114 MB / 498.2 MB, free: 3.859 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2175/0.5475, allocations: 6.19 MB / 0.4926 GB, free: 21.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004131/0.5516, allocations: 1.109 MB / 0.4937 GB, free: 21.55 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00613/0.5578, allocations: 1.512 MB / 0.4952 GB, free: 21.55 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004621/0.5624, allocations: 2.732 MB / 0.4978 GB, free: 21.55 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01156/0.574, allocations: 5.722 MB / 0.5034 GB, free: 21.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02141/0.5955, allocations: 22.6 MB / 0.5255 GB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.5955, allocations: 0 / 0.5255 GB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5955, allocations: 3.5 kB / 0.5255 GB, free: 10.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007846/0.5963, allocations: 0 / 0.5255 GB, free: 10.91 MB / 362.7 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.03876/0.6351, allocations: 13.46 MB / 0.5386 GB, free: 2.504 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.6351, allocations: 9.5 kB / 0.5386 GB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03212/0.6673, allocations: 6.216 MB / 0.5447 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01703/0.6844, allocations: 7.075 MB / 0.5516 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008231/0.6852, allocations: 0.7214 MB / 0.5523 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00383/0.6891, allocations: 0.9501 MB / 0.5532 GB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04304/0.7321, allocations: 16.15 MB / 0.569 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005176/0.7327, allocations: 14.42 kB / 0.569 GB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003788/0.7365, allocations: 403 kB / 0.5694 GB, free: 5.645 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006351/0.7371, allocations: 0.5586 MB / 0.57 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03294/0.7701, allocations: 15.1 MB / 0.5847 GB, free: 5.973 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09889/0.869, allocations: 52.61 MB / 0.6361 GB, free: 1.137 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/0.8897, allocations: 20.11 MB / 0.6557 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006575/0.8963, allocations: 3.676 MB / 0.6593 GB, free: 7.395 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000506/0.8969, allocations: 181.2 kB / 0.6595 GB, free: 7.215 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.217e-05/0.897, allocations: 82.09 kB / 0.6596 GB, free: 7.125 MB / 490.7 MB Notification: Performance of pre-optimization done (n=453): time 8.325e-06/0.897, allocations: 0 / 0.6596 GB, free: 7.125 MB / 490.7 MB Notification: Performance of matching and sorting (n=458): time 0.2506/1.148, allocations: 20.71 MB / 0.6798 GB, free: 159.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.67e-05/1.148, allocations: 102.1 kB / 0.6799 GB, free: 159.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006516/1.154, allocations: 4.495 MB / 0.6843 GB, free: 157.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008433/1.155, allocations: 97.2 kB / 0.6844 GB, free: 157.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002752/1.158, allocations: 4.188 MB / 0.6885 GB, free: 154.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001674/1.16, allocations: 1.547 MB / 0.69 GB, free: 153.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/1.161, allocations: 1.199 MB / 0.6911 GB, free: 152.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.59e-05/1.161, allocations: 305 kB / 0.6914 GB, free: 152.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00396/1.165, allocations: 3.098 MB / 0.6945 GB, free: 151.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004914/1.17, allocations: 5.246 MB / 0.6996 GB, free: 147.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009929/1.18, allocations: 8.938 MB / 0.7083 GB, free: 141.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.513e-05/1.18, allocations: 19.62 kB / 0.7083 GB, free: 141.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01939/1.2, allocations: 9.912 MB / 0.718 GB, free: 136.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.912e-05/1.2, allocations: 39.94 kB / 0.718 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.2, allocations: 68 kB / 0.7181 GB, free: 136.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003648/1.204, allocations: 1.383 MB / 0.7195 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005462/1.209, allocations: 1.383 MB / 0.7208 GB, free: 134 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/1.225, allocations: 11.64 MB / 0.7322 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005865/1.231, allocations: 355.5 kB / 0.7325 GB, free: 122.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/1.232, allocations: 296 kB / 0.7328 GB, free: 122.7 MB / 490.7 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.01067/1.243, allocations: 3.896 MB / 0.7366 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002016/1.245, allocations: 468.8 kB / 0.7371 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.26, allocations: 8.577 MB / 0.7454 GB, free: 109.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009354/1.27, allocations: 6.296 MB / 0.7516 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/1.27, allocations: 12 kB / 0.7516 GB, free: 103.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.244e-05/1.27, allocations: 23.91 kB / 0.7516 GB, free: 103.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03582/1.306, allocations: 17.75 MB / 0.7689 GB, free: 85.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/1.306, allocations: 8 kB / 0.7689 GB, free: 85.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/1.309, allocations: 0.8074 MB / 0.7697 GB, free: 84.63 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003194/1.312, allocations: 1.286 MB / 0.771 GB, free: 83.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006322/1.313, allocations: 99.97 kB / 0.7711 GB, free: 83.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/1.325, allocations: 10.56 MB / 0.7814 GB, free: 72.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.325, allocations: 16 kB / 0.7814 GB, free: 72.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06242/1.388, allocations: 39.81 MB / 0.8203 GB, free: 32.02 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/1.391, allocations: 1.089 MB / 0.8214 GB, free: 30.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/1.392, allocations: 100 kB / 0.8215 GB, free: 30.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002942/1.395, allocations: 235.8 kB / 0.8217 GB, free: 30.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009246/1.396, allocations: 327.6 kB / 0.822 GB, free: 30.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005029/1.396, allocations: 136 kB / 0.8221 GB, free: 30.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005364/1.402, allocations: 3.107 MB / 0.8252 GB, free: 27.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.402, allocations: 4 kB / 0.8252 GB, free: 27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008695/1.411, allocations: 2.079 MB / 0.8272 GB, free: 24.93 MB / 490.7 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.001611/1.412, allocations: 0.5431 MB / 0.8277 GB, free: 24.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01208/1.424, allocations: 8.018 MB / 0.8356 GB, free: 16.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.424, allocations: 4 kB / 0.8356 GB, free: 16.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006268/1.431, allocations: 3.977 MB / 0.8394 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006618/1.437, allocations: 0.987 MB / 0.8404 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2328/1.67, allocations: 25.95 MB / 0.8657 GB, free: 141.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/1.682, allocations: 6.652 MB / 0.8722 GB, free: 140.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006226/1.688, allocations: 2.117 MB / 0.8743 GB, free: 140 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/1.69, allocations: 382.5 kB / 0.8747 GB, free: 140 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/1.69, allocations: 0 / 0.8747 GB, free: 140 MB / 490.7 MB Notification: Performance of Templates: time 0.1183/1.808, allocations: 82.61 MB / 0.9554 GB, free: 68.3 MB / 490.7 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)