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.001615/0.001615, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001358/0.001358, allocations: 192.5 kB / 289.6 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03426/0.03426, allocations: 8.801 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 82.61 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08689, allocations: 51.57 MB / 462.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03924/0.1262, allocations: 38.31 MB / 0.4893 GB, free: 7.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.1474, allocations: 10.03 MB / 0.4991 GB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006514/0.1539, allocations: 291.1 kB / 0.4994 GB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02451/0.1785, allocations: 10.13 MB / 0.5093 GB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01312/0.1916, allocations: 4.046 MB / 0.5132 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006881/0.1985, allocations: 2.365 MB / 0.5156 GB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2209/0.4195, allocations: 16.27 MB / 0.5314 GB, free: 6.441 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0438/0.4633, allocations: 31.39 MB / 0.5621 GB, free: 1.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01226/0.4756, allocations: 8.486 MB / 0.5704 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01751/0.4932, allocations: 9.381 MB / 0.5795 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007447/0.5007, allocations: 2.418 MB / 0.5819 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01009/0.5108, allocations: 2.814 MB / 0.5846 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007577/0.5184, allocations: 4.814 MB / 0.5893 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01612/0.5346, allocations: 9.208 MB / 0.5983 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03903/0.5736, allocations: 31.92 MB / 0.6295 GB, free: 10.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.5737, allocations: 0 / 0.6295 GB, free: 10.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5737, allocations: 0 / 0.6295 GB, free: 10.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009814/0.5747, allocations: 0 / 0.6295 GB, free: 10.32 MB / 430.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.05698/0.6317, allocations: 18.74 MB / 0.6478 GB, free: 7.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.6318, allocations: 8.031 kB / 0.6478 GB, free: 7.582 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007446/0.6392, allocations: 2.016 MB / 0.6498 GB, free: 5.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04638/0.6856, allocations: 8.257 MB / 0.6578 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/0.7052, allocations: 9.92 MB / 0.6675 GB, free: 3.832 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001072/0.7063, allocations: 1.06 MB / 0.6686 GB, free: 2.781 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005677/0.712, allocations: 1.41 MB / 0.6699 GB, free: 1.383 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06076/0.7728, allocations: 22.75 MB / 0.6922 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007914/0.7737, allocations: 23.55 kB / 0.6922 GB, free: 10.56 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005412/0.7791, allocations: 0.5751 MB / 0.6927 GB, free: 10 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008672/0.78, allocations: 0.7755 MB / 0.6935 GB, free: 9.223 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3862/1.166, allocations: 21 MB / 0.714 GB, free: 148.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1096/1.276, allocations: 72.92 MB / 0.7852 GB, free: 99.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02493/1.301, allocations: 42.41 MB / 0.8266 GB, free: 52.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007273/1.308, allocations: 5.204 MB / 0.8317 GB, free: 46.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02076/1.329, allocations: 12.72 MB / 0.8441 GB, free: 34.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.91e-05/1.329, allocations: 82.77 kB / 0.8442 GB, free: 34.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 6.192e-06/1.329, allocations: 0 / 0.8442 GB, free: 34.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.05475/1.384, allocations: 26.36 MB / 0.87 GB, free: 7.434 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/1.384, allocations: 133.3 kB / 0.8701 GB, free: 7.281 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006944/1.391, allocations: 5.771 MB / 0.8757 GB, free: 1.531 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008532/1.392, allocations: 109.7 kB / 0.8758 GB, free: 1.418 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003689/1.396, allocations: 6.153 MB / 0.8818 GB, free: 11.23 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002115/1.398, allocations: 1.731 MB / 0.8835 GB, free: 9.516 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/1.4, allocations: 1.465 MB / 0.885 GB, free: 8.043 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.044e-05/1.4, allocations: 305.1 kB / 0.8853 GB, free: 7.742 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005538/1.406, allocations: 3.626 MB / 0.8888 GB, free: 4.113 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2187/1.624, allocations: 6.474 MB / 0.8951 GB, free: 149.2 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0136/1.638, allocations: 10.76 MB / 0.9056 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/1.638, allocations: 26.12 kB / 0.9056 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02247/1.661, allocations: 12.09 MB / 0.9175 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.587e-05/1.661, allocations: 51.41 kB / 0.9175 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/1.661, allocations: 91.97 kB / 0.9176 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004222/1.665, allocations: 1.612 MB / 0.9192 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006032/1.671, allocations: 1.668 MB / 0.9208 GB, free: 142 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02095/1.692, allocations: 19.68 MB / 0.94 GB, free: 129 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005944/1.698, allocations: 424.3 kB / 0.9404 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.699, allocations: 367.2 kB / 0.9408 GB, free: 128.8 MB / 0.4982 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.007981/1.707, allocations: 5.189 MB / 0.9458 GB, free: 126.4 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/1.709, allocations: 0.5936 MB / 0.9464 GB, free: 126.4 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.723, allocations: 9.372 MB / 0.9556 GB, free: 122.5 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008201/1.731, allocations: 5.879 MB / 0.9613 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-05/1.731, allocations: 23.69 kB / 0.9613 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.691e-05/1.731, allocations: 28.12 kB / 0.9614 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03142/1.763, allocations: 21.03 MB / 0.9819 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/1.763, allocations: 4 kB / 0.9819 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003434/1.766, allocations: 0.8705 MB / 0.9828 GB, free: 101 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004226/1.771, allocations: 1.638 MB / 0.9844 GB, free: 99.36 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006452/1.771, allocations: 132 kB / 0.9845 GB, free: 99.23 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.792, allocations: 23.26 MB / 1.007 GB, free: 75.27 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.792, allocations: 11.94 kB / 1.007 GB, free: 75.26 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/1.812, allocations: 13.71 MB / 1.021 GB, free: 61.46 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/1.816, allocations: 1.366 MB / 1.022 GB, free: 60.08 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001618/1.817, allocations: 103.8 kB / 1.022 GB, free: 59.98 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003636/1.821, allocations: 291.7 kB / 1.022 GB, free: 59.7 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/1.822, allocations: 412.6 kB / 1.023 GB, free: 59.29 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003165/1.822, allocations: 152 kB / 1.023 GB, free: 59.14 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005154/1.827, allocations: 3.891 MB / 1.027 GB, free: 55.28 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.5e-07/1.827, allocations: 0 / 1.027 GB, free: 55.28 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008181/1.836, allocations: 2.341 MB / 1.029 GB, free: 52.94 MB / 0.4982 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.0197/1.855, allocations: 14.5 MB / 1.043 GB, free: 38.09 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03004/1.885, allocations: 15.87 MB / 1.059 GB, free: 22.18 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.885, allocations: 0 / 1.059 GB, free: 22.18 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009031/1.895, allocations: 5.446 MB / 1.064 GB, free: 16.65 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01202/1.907, allocations: 1.629 MB / 1.065 GB, free: 15.07 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3467/2.253, allocations: 101.5 MB / 1.165 GB, free: 92.3 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01232/2.266, allocations: 8.853 MB / 1.173 GB, free: 83.41 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007941/2.274, allocations: 2.53 MB / 1.176 GB, free: 80.93 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01112/2.285, allocations: 5.158 MB / 1.181 GB, free: 75.77 MB / 0.4982 GB Notification: Performance of SimCode: time 2.484e-06/2.285, allocations: 0 / 1.181 GB, free: 75.77 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4998/2.785, allocations: 189.7 MB / 1.366 GB, free: 88.77 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/16.13, allocations: 18.22 kB / 1.366 GB, free: 88.76 MB / 0.5138 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)