Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",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.005034/0.005034, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.448/1.448, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001577/0.001577, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03768/0.03768, allocations: 8.802 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 80.16 kB / 463.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1041, allocations: 51.57 MB / 0.5029 GB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.258/0.3622, allocations: 38.31 MB / 0.5403 GB, free: 4.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02189/0.3841, allocations: 10.02 MB / 0.5501 GB, free: 2.961 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01073/0.395, allocations: 290.7 kB / 0.5504 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02614/0.4212, allocations: 10.15 MB / 0.5603 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.4369, allocations: 4.028 MB / 0.5642 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008331/0.4452, allocations: 2.391 MB / 0.5666 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02541/0.4706, allocations: 16.38 MB / 0.5826 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05694/0.5276, allocations: 31.18 MB / 0.613 GB, free: 1.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01513/0.5428, allocations: 8.47 MB / 0.6213 GB, free: 8.648 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01631/0.5591, allocations: 9.324 MB / 0.6304 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007577/0.5667, allocations: 2.418 MB / 0.6328 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.5782, allocations: 2.812 MB / 0.6355 GB, free: 10.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00834/0.5866, allocations: 4.809 MB / 0.6402 GB, free: 5.238 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01919/0.6059, allocations: 9.202 MB / 0.6492 GB, free: 12 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05001/0.6559, allocations: 32.18 MB / 0.6806 GB, free: 11.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.656, allocations: 4 kB / 0.6806 GB, free: 11.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.656, allocations: 0 / 0.6806 GB, free: 11.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001063/0.657, allocations: 3.984 kB / 0.6806 GB, free: 11.71 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.06221/0.7193, allocations: 19.02 MB / 0.6992 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.7193, allocations: 8.031 kB / 0.6992 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007816/0.7272, allocations: 2.015 MB / 0.7012 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05036/0.7776, allocations: 8.368 MB / 0.7093 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02659/0.8042, allocations: 10.24 MB / 0.7193 GB, free: 3.82 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001584/0.8058, allocations: 1.06 MB / 0.7204 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006796/0.8126, allocations: 1.402 MB / 0.7217 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3038/1.116, allocations: 22.74 MB / 0.744 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001179/1.118, allocations: 24.75 kB / 0.744 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00634/1.124, allocations: 0.5749 MB / 0.7445 GB, free: 135.9 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001826/1.126, allocations: 0.7839 MB / 0.7453 GB, free: 135.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04383/1.17, allocations: 21.01 MB / 0.7658 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1228/1.293, allocations: 72.19 MB / 0.8363 GB, free: 58 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0264/1.319, allocations: 42.4 MB / 0.8777 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007353/1.326, allocations: 5.166 MB / 0.8828 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02664/1.353, allocations: 12.7 MB / 0.8952 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/1.353, allocations: 90.77 kB / 0.8953 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 8.786e-06/1.353, allocations: 0 / 0.8953 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.07082/1.424, allocations: 26.68 MB / 0.9213 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.424, allocations: 129.3 kB / 0.9215 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01411/1.438, allocations: 5.768 MB / 0.9271 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001152/1.44, allocations: 109.7 kB / 0.9272 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.006831/1.446, allocations: 6.363 MB / 0.9334 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.2434/1.69, allocations: 1.816 MB / 0.9352 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003332/1.693, allocations: 1.467 MB / 0.9366 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.687e-05/1.693, allocations: 301.1 kB / 0.9369 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005628/1.699, allocations: 3.626 MB / 0.9404 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008182/1.707, allocations: 6.481 MB / 0.9468 GB, free: 167 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01421/1.721, allocations: 10.76 MB / 0.9573 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001507/1.722, allocations: 28.09 kB / 0.9573 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02623/1.748, allocations: 12.12 MB / 0.9691 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001343/1.748, allocations: 42.97 kB / 0.9692 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002064/1.748, allocations: 91 kB / 0.9693 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004736/1.753, allocations: 1.6 MB / 0.9708 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006491/1.759, allocations: 1.666 MB / 0.9725 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02082/1.78, allocations: 19.68 MB / 0.9917 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007114/1.787, allocations: 426.7 kB / 0.9921 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00173/1.789, allocations: 367.9 kB / 0.9924 GB, free: 143.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,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.009826/1.799, allocations: 5.192 MB / 0.9975 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.801, allocations: 0.626 MB / 0.9981 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01606/1.817, allocations: 9.375 MB / 1.007 GB, free: 137 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009398/1.826, allocations: 5.873 MB / 1.013 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.878e-05/1.826, allocations: 20 kB / 1.013 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001224/1.826, allocations: 24.05 kB / 1.013 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03625/1.863, allocations: 21.01 MB / 1.034 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.393e-05/1.863, allocations: 4 kB / 1.034 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003601/1.866, allocations: 0.8625 MB / 1.034 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004673/1.871, allocations: 1.653 MB / 1.036 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00107/1.872, allocations: 124 kB / 1.036 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02147/1.894, allocations: 23.25 MB / 1.059 GB, free: 88.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.894, allocations: 4 kB / 1.059 GB, free: 88.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01984/1.914, allocations: 13.76 MB / 1.072 GB, free: 74.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00401/1.918, allocations: 1.39 MB / 1.074 GB, free: 72.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001609/1.919, allocations: 108 kB / 1.074 GB, free: 72.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003691/1.923, allocations: 291.9 kB / 1.074 GB, free: 72.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009218/1.924, allocations: 408.4 kB / 1.074 GB, free: 72.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003391/1.924, allocations: 159.9 kB / 1.075 GB, free: 72.03 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006352/1.931, allocations: 3.887 MB / 1.078 GB, free: 68.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.51e-07/1.931, allocations: 0 / 1.078 GB, free: 68.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009791/1.94, allocations: 2.34 MB / 1.081 GB, free: 65.84 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01899/1.959, allocations: 14.52 MB / 1.095 GB, free: 50.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01481/1.974, allocations: 9.912 MB / 1.105 GB, free: 40.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.974, allocations: 4 kB / 1.105 GB, free: 40.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008416/1.983, allocations: 5.463 MB / 1.11 GB, free: 35.39 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00972/1.992, allocations: 1.64 MB / 1.111 GB, free: 33.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3718/2.364, allocations: 80.28 MB / 1.19 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01548/2.38, allocations: 8.848 MB / 1.198 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007559/2.387, allocations: 2.532 MB / 1.201 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007585/2.395, allocations: 5.157 MB / 1.206 GB, free: 171 MB / 0.5762 GB Notification: Performance of SimCode: time 1.272e-06/2.395, allocations: 0 / 1.206 GB, free: 171 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5423/2.937, allocations: 187.5 MB / 1.389 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.22/28.15, allocations: 9.781 kB / 1.389 GB, free: 171.5 MB / 0.5762 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_DOL.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)