Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 225.6 MB / 244.8 MB, free: 14.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 193.6 kB / 299.8 MB, free: 9.812 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0402/0.0402, allocations: 8.933 MB / 363.6 MB, free: 10.16 MB / 302.1 MB " [Timeout remaining time 180] 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_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 81.81 kB / 486.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1349, allocations: 54.41 MB / 0.5278 GB, free: 1.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01678/0.1517, allocations: 13.65 MB / 0.5411 GB, free: 3.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.1618, allocations: 4.454 MB / 0.5455 GB, free: 15.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.1649, allocations: 75.75 kB / 0.5456 GB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.1685, allocations: 1.026 MB / 0.5466 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005469/0.174, allocations: 1.355 MB / 0.5479 GB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003056/0.1771, allocations: 0.9086 MB / 0.5488 GB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007009/0.1841, allocations: 4.163 MB / 0.5528 GB, free: 7.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004077/0.1882, allocations: 2.226 MB / 0.555 GB, free: 5.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003775/0.1919, allocations: 1.924 MB / 0.5569 GB, free: 3.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004778/0.1967, allocations: 2.101 MB / 0.5589 GB, free: 1.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001773/0.1985, allocations: 0.5078 MB / 0.5594 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/0.2014, allocations: 0.7107 MB / 0.5601 GB, free: 12 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002292/0.2037, allocations: 1.095 MB / 0.5612 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005166/0.2088, allocations: 2.147 MB / 0.5633 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01225/0.2211, allocations: 6.7 MB / 0.5698 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.425e-06/0.2211, allocations: 0 / 0.5698 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2211, allocations: 0 / 0.5698 GB, free: 6.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002291/0.2213, allocations: 0 / 0.5698 GB, free: 6.035 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01651/0.2378, allocations: 4.503 MB / 0.5742 GB, free: 1.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.2379, allocations: 8.031 kB / 0.5742 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001615/0.2395, allocations: 464 kB / 0.5747 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005371/0.2449, allocations: 0.8417 MB / 0.5755 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006991/0.2519, allocations: 2.452 MB / 0.5779 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003259/0.2522, allocations: 242.9 kB / 0.5781 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001241/0.2534, allocations: 335.9 kB / 0.5785 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.2652, allocations: 4.318 MB / 0.5827 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.2654, allocations: 7.891 kB / 0.5827 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000812/0.2662, allocations: 136 kB / 0.5828 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002002/0.2664, allocations: 150.5 kB / 0.583 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008727/0.2751, allocations: 3.59 MB / 0.5865 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02845/0.3036, allocations: 13.72 MB / 0.5999 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00774/0.3113, allocations: 6.492 MB / 0.6062 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002722/0.314, allocations: 1.285 MB / 0.6075 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00873/0.3227, allocations: 3.656 MB / 0.611 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/0.3245, allocations: 0.9469 MB / 0.6119 GB, free: 9.379 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 4.638e-06/0.3245, allocations: 0 / 0.6119 GB, free: 9.379 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01366/0.3382, allocations: 6.012 MB / 0.6178 GB, free: 3.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.3384, allocations: 234.9 kB / 0.618 GB, free: 2.875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003687/0.3421, allocations: 1.785 MB / 0.6198 GB, free: 1.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.3423, allocations: 53.7 kB / 0.6198 GB, free: 1.031 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001724/0.344, allocations: 1.501 MB / 0.6213 GB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007378/0.3447, allocations: 0.5229 MB / 0.6218 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007201/0.3455, allocations: 343.4 kB / 0.6221 GB, free: 14.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3456, allocations: 309.1 kB / 0.6224 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.347, allocations: 0.691 MB / 0.6231 GB, free: 13.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.349, allocations: 1.35 MB / 0.6244 GB, free: 12.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003443/0.3524, allocations: 2.114 MB / 0.6265 GB, free: 9.648 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.192e-05/0.3525, allocations: 12 kB / 0.6265 GB, free: 9.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005415/0.3579, allocations: 2.641 MB / 0.6291 GB, free: 6.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.3579, allocations: 16 kB / 0.6291 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.354e-05/0.358, allocations: 19.98 kB / 0.6291 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.3591, allocations: 380.3 kB / 0.6295 GB, free: 6.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3606, allocations: 387.4 kB / 0.6299 GB, free: 6.152 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.3709, allocations: 8.452 MB / 0.6381 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.3727, allocations: 99.97 kB / 0.6382 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003487/0.373, allocations: 80 kB / 0.6383 GB, free: 12.97 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002682/0.3757, allocations: 1.028 MB / 0.6393 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006867/0.3764, allocations: 202.7 kB / 0.6395 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005285/0.3817, allocations: 2.329 MB / 0.6417 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.3817, allocations: 12 kB / 0.6418 GB, free: 9.324 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.33e-05/0.3817, allocations: 8 kB / 0.6418 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.3817, allocations: 3.984 kB / 0.6418 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.3924, allocations: 5.106 MB / 0.6468 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.3924, allocations: 4 kB / 0.6468 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.3932, allocations: 176 kB / 0.6469 GB, free: 3.887 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/0.3948, allocations: 0.5279 MB / 0.6474 GB, free: 3.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.3949, allocations: 43.92 kB / 0.6475 GB, free: 3.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2512/0.6461, allocations: 13.25 MB / 0.6604 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.6461, allocations: 10.03 kB / 0.6604 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0052/0.6513, allocations: 3.27 MB / 0.6636 GB, free: 98.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.6524, allocations: 443.4 kB / 0.664 GB, free: 98.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.6526, allocations: 43 kB / 0.6641 GB, free: 98.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008627/0.6535, allocations: 59.5 kB / 0.6641 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000464/0.6539, allocations: 115.4 kB / 0.6643 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6541, allocations: 45.61 kB / 0.6643 GB, free: 98.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0023/0.6564, allocations: 1.219 MB / 0.6655 GB, free: 98.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6564, allocations: 0 / 0.6655 GB, free: 98.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002434/0.6588, allocations: 0.6029 MB / 0.6661 GB, free: 98.08 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004341/0.6631, allocations: 3.893 MB / 0.6699 GB, free: 96.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.6663, allocations: 2.347 MB / 0.6722 GB, free: 94.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.6664, allocations: 3.312 kB / 0.6722 GB, free: 94.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.6685, allocations: 1.702 MB / 0.6738 GB, free: 93.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002276/0.6708, allocations: 0.5491 MB / 0.6744 GB, free: 93.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0256/0.6964, allocations: 20.73 MB / 0.6946 GB, free: 75.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/0.698, allocations: 2.335 MB / 0.6969 GB, free: 73.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.6993, allocations: 417.3 kB / 0.6973 GB, free: 72.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.7004, allocations: 1.151 MB / 0.6984 GB, free: 71.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7004, allocations: 0 / 0.6984 GB, free: 71.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1398/0.8401, allocations: 55.44 MB / 0.7526 GB, free: 16.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.75, allocations: 7.688 kB / 0.7526 GB, free: 16.75 MB / 462.1 MB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.992920444812626] Failed to read output from testmodel.py, exit status != 0: 15.110674045048654 14.891657823 14.666589782 Calling exit ...