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.001287/0.001287, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.34/1.34, allocations: 222.9 MB / 239 MB, free: 4.73 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.00122/0.00122, allocations: 192.5 kB / 289.3 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03573/0.03573, allocations: 8.804 MB / 348.2 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 81.17 kB / 410.7 MB, free: 42.31 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08437, allocations: 51.57 MB / 462.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02537/0.1098, allocations: 24.42 MB / 486.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.1244, allocations: 7.899 MB / 494.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00518/0.1296, allocations: 175.4 kB / 494.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01814/0.1478, allocations: 7.928 MB / 0.4909 GB, free: 6.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.1581, allocations: 2.702 MB / 0.4935 GB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005574/0.1637, allocations: 1.678 MB / 0.4952 GB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.1782, allocations: 11.07 MB / 0.506 GB, free: 6.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2252/0.4034, allocations: 26.84 MB / 0.5322 GB, free: 17.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008249/0.4117, allocations: 5.948 MB / 0.538 GB, free: 17.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01053/0.4223, allocations: 6.581 MB / 0.5444 GB, free: 16.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005062/0.4274, allocations: 1.718 MB / 0.5461 GB, free: 16.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009478/0.4369, allocations: 2.13 MB / 0.5482 GB, free: 16.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005689/0.4426, allocations: 3.36 MB / 0.5515 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01004/0.4527, allocations: 6.358 MB / 0.5577 GB, free: 14.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01798/0.4707, allocations: 23 MB / 0.5801 GB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4707, allocations: 3.25 kB / 0.5801 GB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4707, allocations: 0 / 0.5801 GB, free: 2.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004759/0.4712, allocations: 0 / 0.5801 GB, free: 2.355 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.03652/0.5077, allocations: 13.46 MB / 0.5933 GB, free: 8.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.5078, allocations: 12.03 kB / 0.5933 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005968/0.5138, allocations: 1.621 MB / 0.5949 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03507/0.5489, allocations: 6.215 MB / 0.601 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0156/0.5645, allocations: 7.072 MB / 0.6079 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/0.5657, allocations: 0.729 MB / 0.6086 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005349/0.5711, allocations: 0.9574 MB / 0.6095 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04587/0.617, allocations: 16.18 MB / 0.6253 GB, free: 7.973 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006051/0.6177, allocations: 7.906 kB / 0.6253 GB, free: 7.965 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003885/0.6216, allocations: 405.6 kB / 0.6257 GB, free: 7.578 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007435/0.6223, allocations: 0.5554 MB / 0.6262 GB, free: 7.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03559/0.6579, allocations: 15.15 MB / 0.641 GB, free: 7.863 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09635/0.7543, allocations: 52.66 MB / 0.6925 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2007/0.955, allocations: 20.11 MB / 0.7121 GB, free: 153.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005707/0.9608, allocations: 3.669 MB / 0.7157 GB, free: 153.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005249/0.9614, allocations: 183.6 kB / 0.7159 GB, free: 153.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.9614, allocations: 81.97 kB / 0.7159 GB, free: 153.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 7.124e-06/0.9614, allocations: 1.344 kB / 0.7159 GB, free: 153.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.05001/1.011, allocations: 20.72 MB / 0.7362 GB, free: 151 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/1.012, allocations: 102 kB / 0.7363 GB, free: 150.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005423/1.017, allocations: 4.498 MB / 0.7407 GB, free: 149.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006598/1.018, allocations: 100.7 kB / 0.7408 GB, free: 149.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001887/1.02, allocations: 4.202 MB / 0.7449 GB, free: 146 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/1.021, allocations: 1.55 MB / 0.7464 GB, free: 144.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/1.023, allocations: 1.2 MB / 0.7476 GB, free: 144.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/1.023, allocations: 305.7 kB / 0.7478 GB, free: 143.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004501/1.027, allocations: 3.096 MB / 0.7509 GB, free: 142.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005197/1.033, allocations: 5.248 MB / 0.756 GB, free: 138.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00975/1.042, allocations: 8.937 MB / 0.7647 GB, free: 133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.539e-05/1.042, allocations: 23.59 kB / 0.7647 GB, free: 133 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01711/1.06, allocations: 9.902 MB / 0.7744 GB, free: 128 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.89e-05/1.06, allocations: 40.28 kB / 0.7744 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/1.06, allocations: 72 kB / 0.7745 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003375/1.063, allocations: 1.387 MB / 0.7759 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005034/1.068, allocations: 1.378 MB / 0.7772 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/1.082, allocations: 12.53 MB / 0.7895 GB, free: 112.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004809/1.087, allocations: 355.5 kB / 0.7898 GB, free: 112.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009204/1.088, allocations: 296 kB / 0.7901 GB, free: 112 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.006296/1.094, allocations: 3.896 MB / 0.7939 GB, free: 108.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/1.096, allocations: 462.3 kB / 0.7943 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.108, allocations: 8.577 MB / 0.8027 GB, free: 99.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009473/1.117, allocations: 6.296 MB / 0.8088 GB, free: 92.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.938e-05/1.117, allocations: 12 kB / 0.8089 GB, free: 92.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.312e-05/1.117, allocations: 27.91 kB / 0.8089 GB, free: 92.67 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03025/1.148, allocations: 17.76 MB / 0.8262 GB, free: 74.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.148, allocations: 8.938 kB / 0.8262 GB, free: 74.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003251/1.151, allocations: 0.8035 MB / 0.827 GB, free: 73.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003137/1.154, allocations: 1.29 MB / 0.8283 GB, free: 72.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006052/1.155, allocations: 104 kB / 0.8284 GB, free: 72.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/1.167, allocations: 11.44 MB / 0.8395 GB, free: 60.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.167, allocations: 11.94 kB / 0.8396 GB, free: 60.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/1.182, allocations: 11.29 MB / 0.8506 GB, free: 49.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002633/1.185, allocations: 1.096 MB / 0.8516 GB, free: 48.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008884/1.186, allocations: 92 kB / 0.8517 GB, free: 48.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/1.188, allocations: 235.7 kB / 0.852 GB, free: 48.03 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000673/1.189, allocations: 327.5 kB / 0.8523 GB, free: 47.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002693/1.189, allocations: 137.6 kB / 0.8524 GB, free: 47.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003876/1.193, allocations: 3.103 MB / 0.8554 GB, free: 44.46 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.193, allocations: 3.938 kB / 0.8554 GB, free: 44.46 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005905/1.199, allocations: 1.733 MB / 0.8571 GB, free: 42.73 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.0153/1.214, allocations: 12.3 MB / 0.8691 GB, free: 30.46 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0334/1.248, allocations: 15.25 MB / 0.884 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.248, allocations: 0.9375 kB / 0.884 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00694/1.255, allocations: 3.987 MB / 0.8879 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006617/1.261, allocations: 1.047 MB / 0.889 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3013/1.563, allocations: 76.69 MB / 0.9639 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00791/1.571, allocations: 6.512 MB / 0.9702 GB, free: 118.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005511/1.576, allocations: 2.118 MB / 0.9723 GB, free: 116.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004871/1.581, allocations: 3.506 MB / 0.9757 GB, free: 113.3 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/1.581, allocations: 0 / 0.9757 GB, free: 113.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3292/1.91, allocations: 140.9 MB / 1.113 GB, free: 146.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/1.91, allocations: 259.4 kB / 1.114 GB, free: 146.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.674/6.584, allocations: 0 / 1.114 GB, free: 146.5 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)