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.005582/0.005582, allocations: 99.67 kB / 15.73 MB, free: 6.008 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.349/1.349, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.001392/0.001392, allocations: 192.5 kB / 289.7 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03455/0.03455, allocations: 8.793 MB / 348.7 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 79.86 kB / 463.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09861, allocations: 51.55 MB / 0.5029 GB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.2461/0.3447, allocations: 38.32 MB / 0.5403 GB, free: 4.438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.3681, allocations: 10.02 MB / 0.5501 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008624/0.3768, allocations: 290.4 kB / 0.5504 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02358/0.4004, allocations: 10.22 MB / 0.5604 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.016/0.4164, allocations: 4.122 MB / 0.5644 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008053/0.4245, allocations: 2.387 MB / 0.5667 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02334/0.4478, allocations: 16.39 MB / 0.5827 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05047/0.4984, allocations: 31.19 MB / 0.6132 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01504/0.5134, allocations: 8.501 MB / 0.6215 GB, free: 8.324 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01806/0.5316, allocations: 9.328 MB / 0.6306 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008394/0.54, allocations: 2.418 MB / 0.633 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0105/0.5505, allocations: 2.812 MB / 0.6357 GB, free: 9.734 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008884/0.5595, allocations: 4.805 MB / 0.6404 GB, free: 4.914 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0212/0.5807, allocations: 9.199 MB / 0.6494 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04311/0.6239, allocations: 32.18 MB / 0.6808 GB, free: 11.39 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.6239, allocations: 8 kB / 0.6808 GB, free: 11.39 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6239, allocations: 0 / 0.6808 GB, free: 11.39 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0007444/0.6247, allocations: 0 / 0.6808 GB, free: 11.39 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.05813/0.6828, allocations: 19.02 MB / 0.6994 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.6829, allocations: 12.03 kB / 0.6994 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006991/0.6899, allocations: 2.007 MB / 0.7014 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04782/0.7377, allocations: 8.368 MB / 0.7095 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02525/0.763, allocations: 10.24 MB / 0.7195 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001101/0.7641, allocations: 1.064 MB / 0.7206 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005532/0.7697, allocations: 1.398 MB / 0.7219 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4759/1.246, allocations: 22.74 MB / 0.7442 GB, free: 132.7 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007417/1.246, allocations: 21.55 kB / 0.7442 GB, free: 132.7 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005053/1.251, allocations: 0.5766 MB / 0.7447 GB, free: 132.3 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/1.253, allocations: 0.7788 MB / 0.7455 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04809/1.301, allocations: 21.02 MB / 0.766 GB, free: 123.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1121/1.413, allocations: 72.19 MB / 0.8365 GB, free: 54.54 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02639/1.439, allocations: 42.4 MB / 0.8779 GB, free: 7.262 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00753/1.447, allocations: 5.166 MB / 0.883 GB, free: 2.078 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/1.474, allocations: 12.7 MB / 0.8954 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001004/1.475, allocations: 94.69 kB / 0.8955 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 7.824e-06/1.475, allocations: 0 / 0.8955 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.06755/1.542, allocations: 26.67 MB / 0.9215 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.542, allocations: 133.3 kB / 0.9216 GB, free: 10.92 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.553, allocations: 5.767 MB / 0.9273 GB, free: 5.234 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009202/1.554, allocations: 105.7 kB / 0.9274 GB, free: 5.125 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005508/1.56, allocations: 6.362 MB / 0.9336 GB, free: 14.88 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002854/1.563, allocations: 1.818 MB / 0.9354 GB, free: 13.09 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005832/1.568, allocations: 1.47 MB / 0.9368 GB, free: 11.61 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0002407/1.569, allocations: 305.1 kB / 0.9371 GB, free: 11.31 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00816/1.577, allocations: 3.63 MB / 0.9406 GB, free: 7.676 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2966/1.874, allocations: 6.472 MB / 0.947 GB, free: 177.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/1.887, allocations: 10.77 MB / 0.9575 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.094e-05/1.887, allocations: 26.47 kB / 0.9575 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02838/1.916, allocations: 12.11 MB / 0.9693 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/1.916, allocations: 50.34 kB / 0.9694 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002776/1.916, allocations: 96.75 kB / 0.9695 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005299/1.921, allocations: 1.599 MB / 0.971 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0067/1.928, allocations: 1.668 MB / 0.9727 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02004/1.948, allocations: 19.68 MB / 0.9919 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00608/1.954, allocations: 426.6 kB / 0.9923 GB, free: 157.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001208/1.955, allocations: 367.6 kB / 0.9926 GB, free: 157.5 MB / 0.5763 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.007447/1.963, allocations: 5.189 MB / 0.9977 GB, free: 155 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.964, allocations: 0.6235 MB / 0.9983 GB, free: 155 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01519/1.98, allocations: 9.373 MB / 1.007 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009155/1.989, allocations: 5.873 MB / 1.013 GB, free: 148.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.125e-05/1.989, allocations: 19.25 kB / 1.013 GB, free: 148.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.341e-05/1.989, allocations: 33.42 kB / 1.013 GB, free: 148.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03249/2.022, allocations: 21.01 MB / 1.034 GB, free: 136.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.069e-05/2.022, allocations: 8 kB / 1.034 GB, free: 136.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003386/2.025, allocations: 0.8659 MB / 1.035 GB, free: 136 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004112/2.029, allocations: 1.638 MB / 1.036 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004338/2.03, allocations: 124 kB / 1.036 GB, free: 134.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02228/2.052, allocations: 23.26 MB / 1.059 GB, free: 110.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/2.052, allocations: 11.94 kB / 1.059 GB, free: 110.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02164/2.074, allocations: 13.75 MB / 1.072 GB, free: 96.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004247/2.078, allocations: 1.393 MB / 1.074 GB, free: 94.99 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001814/2.08, allocations: 104 kB / 1.074 GB, free: 94.89 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003781/2.083, allocations: 287.7 kB / 1.074 GB, free: 94.61 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008495/2.084, allocations: 412.3 kB / 1.075 GB, free: 94.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003067/2.085, allocations: 152 kB / 1.075 GB, free: 94.05 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004966/2.09, allocations: 3.887 MB / 1.079 GB, free: 90.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.3e-07/2.09, allocations: 4 kB / 1.079 GB, free: 90.19 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008517/2.098, allocations: 2.346 MB / 1.081 GB, free: 87.85 MB / 0.5763 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.0188/2.117, allocations: 14.51 MB / 1.095 GB, free: 72.99 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01585/2.133, allocations: 9.912 MB / 1.105 GB, free: 62.97 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/2.133, allocations: 1 kB / 1.105 GB, free: 62.97 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009007/2.142, allocations: 5.462 MB / 1.11 GB, free: 57.42 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01162/2.154, allocations: 1.634 MB / 1.112 GB, free: 55.83 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.457/2.611, allocations: 80.3 MB / 1.19 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01267/2.623, allocations: 8.845 MB / 1.199 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007053/2.63, allocations: 2.532 MB / 1.201 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007383/2.638, allocations: 5.16 MB / 1.206 GB, free: 159.1 MB / 0.5763 GB Notification: Performance of SimCode: time 9.41e-07/2.638, allocations: 0 / 1.206 GB, free: 159.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5335/3.171, allocations: 187.5 MB / 1.389 GB, free: 129.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.29/28.46, allocations: 1.125 kB / 1.389 GB, free: 129.7 MB / 0.5763 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)