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.00536/0.00536, allocations: 99.34 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.412/1.412, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001449/0.001449, allocations: 192.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.036/0.036, allocations: 8.808 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 79.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1045, allocations: 51.55 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02674/0.1313, allocations: 24.86 MB / 0.5272 GB, free: 1.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2115/0.3428, allocations: 7.986 MB / 0.535 GB, free: 3.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005013/0.3479, allocations: 179.5 kB / 0.5352 GB, free: 3.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01758/0.3655, allocations: 8.381 MB / 0.5434 GB, free: 3.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009964/0.3755, allocations: 2.984 MB / 0.5463 GB, free: 2.234 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005245/0.3807, allocations: 1.802 MB / 0.548 GB, free: 2.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01473/0.3955, allocations: 11.12 MB / 0.5589 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0361/0.4316, allocations: 23.27 MB / 0.5816 GB, free: 14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01238/0.4441, allocations: 5.894 MB / 0.5874 GB, free: 8.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01144/0.4556, allocations: 6.442 MB / 0.5937 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004264/0.4599, allocations: 1.715 MB / 0.5953 GB, free: 244 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006544/0.4664, allocations: 2.13 MB / 0.5974 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005183/0.4716, allocations: 3.396 MB / 0.6007 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0122/0.4839, allocations: 6.358 MB / 0.6069 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02971/0.5136, allocations: 23.16 MB / 0.6296 GB, free: 13.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.5137, allocations: 0 / 0.6296 GB, free: 13.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5137, allocations: 0 / 0.6296 GB, free: 13.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000537/0.5142, allocations: 0 / 0.6296 GB, free: 13.62 MB / 446.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.03941/0.5536, allocations: 13.62 MB / 0.6429 GB, free: 15.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.5537, allocations: 8.031 kB / 0.6429 GB, free: 15.97 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006616/0.5604, allocations: 1.608 MB / 0.6444 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03535/0.5957, allocations: 6.321 MB / 0.6506 GB, free: 8.105 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/0.6111, allocations: 7.286 MB / 0.6577 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008123/0.6119, allocations: 0.7183 MB / 0.6584 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003657/0.6156, allocations: 0.9484 MB / 0.6593 GB, free: 15.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04409/0.6597, allocations: 16.18 MB / 0.6751 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004888/0.6603, allocations: 11.91 kB / 0.6752 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003684/0.664, allocations: 406 kB / 0.6755 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007473/0.6647, allocations: 0.5632 MB / 0.6761 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03617/0.7009, allocations: 15.12 MB / 0.6909 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4465/1.147, allocations: 52.2 MB / 0.7418 GB, free: 119.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01658/1.164, allocations: 20.09 MB / 0.7615 GB, free: 105.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00518/1.169, allocations: 3.636 MB / 0.765 GB, free: 105.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003689/1.17, allocations: 185.9 kB / 0.7652 GB, free: 105 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/1.17, allocations: 79.38 kB / 0.7653 GB, free: 105 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 6.813e-06/1.17, allocations: 0 / 0.7653 GB, free: 105 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.04676/1.217, allocations: 20.77 MB / 0.7855 GB, free: 99.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/1.217, allocations: 99.64 kB / 0.7856 GB, free: 99.33 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005064/1.222, allocations: 4.504 MB / 0.79 GB, free: 97.04 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006617/1.222, allocations: 100.7 kB / 0.7901 GB, free: 96.95 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001743/1.224, allocations: 4.348 MB / 0.7944 GB, free: 93.75 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/1.225, allocations: 1.612 MB / 0.796 GB, free: 92.35 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/1.227, allocations: 1.196 MB / 0.7971 GB, free: 91.67 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.671e-05/1.227, allocations: 301.1 kB / 0.7974 GB, free: 91.37 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003547/1.23, allocations: 3.064 MB / 0.8004 GB, free: 89.71 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/1.235, allocations: 5.214 MB / 0.8055 GB, free: 85.22 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008439/1.243, allocations: 8.87 MB / 0.8142 GB, free: 78.71 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.587e-05/1.243, allocations: 20.34 kB / 0.8142 GB, free: 78.71 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01334/1.256, allocations: 9.884 MB / 0.8238 GB, free: 69.66 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/1.257, allocations: 39.98 kB / 0.8239 GB, free: 69.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.413e-05/1.257, allocations: 71.98 kB / 0.8239 GB, free: 69.55 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003339/1.26, allocations: 1.4 MB / 0.8253 GB, free: 68.14 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004662/1.265, allocations: 1.388 MB / 0.8267 GB, free: 66.75 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.279, allocations: 12.67 MB / 0.839 GB, free: 53.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005262/1.284, allocations: 359.6 kB / 0.8394 GB, free: 53.46 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/1.285, allocations: 296 kB / 0.8397 GB, free: 53.18 MB / 0.5138 GB 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005455/1.291, allocations: 3.888 MB / 0.8434 GB, free: 49.27 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.292, allocations: 488.9 kB / 0.8439 GB, free: 48.79 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/1.303, allocations: 8.507 MB / 0.8522 GB, free: 40.23 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008044/1.311, allocations: 6.252 MB / 0.8583 GB, free: 33.96 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/1.311, allocations: 12 kB / 0.8583 GB, free: 33.95 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.211e-05/1.311, allocations: 19.92 kB / 0.8584 GB, free: 33.93 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02249/1.334, allocations: 17.43 MB / 0.8754 GB, free: 16.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/1.334, allocations: 4 kB / 0.8754 GB, free: 16.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002834/1.337, allocations: 0.8114 MB / 0.8762 GB, free: 15.59 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003028/1.34, allocations: 1.286 MB / 0.8774 GB, free: 14.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002676/1.34, allocations: 108 kB / 0.8775 GB, free: 14.19 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/1.352, allocations: 11.56 MB / 0.8888 GB, free: 2.367 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.352, allocations: 8 kB / 0.8888 GB, free: 2.359 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01763/1.37, allocations: 11.21 MB / 0.8998 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002779/1.372, allocations: 1.119 MB / 0.9009 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008203/1.373, allocations: 88 kB / 0.901 GB, free: 5.781 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/1.376, allocations: 235.8 kB / 0.9012 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007458/1.376, allocations: 331.5 kB / 0.9015 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000303/1.377, allocations: 136 kB / 0.9016 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005396/1.382, allocations: 3.107 MB / 0.9047 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.71e-07/1.382, allocations: 0 / 0.9047 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008391/1.391, allocations: 1.73 MB / 0.9063 GB, free: 252 kB / 0.5294 GB 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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02024/1.411, allocations: 12.24 MB / 0.9183 GB, free: 4.004 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01406/1.425, allocations: 7.987 MB / 0.9261 GB, free: 11.99 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.425, allocations: 1 kB / 0.9261 GB, free: 11.99 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007583/1.433, allocations: 3.946 MB / 0.93 GB, free: 8.023 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006064/1.439, allocations: 1.039 MB / 0.931 GB, free: 7.008 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2891/1.728, allocations: 60.88 MB / 0.9904 GB, free: 166.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005581/1.733, allocations: 6.517 MB / 0.9968 GB, free: 161.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004654/1.738, allocations: 2.12 MB / 0.9989 GB, free: 159.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004908/1.743, allocations: 3.553 MB / 1.002 GB, free: 155.8 MB / 0.5607 GB Notification: Performance of SimCode: time 2.084e-06/1.743, allocations: 0 / 1.002 GB, free: 155.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1777/1.921, allocations: 139 MB / 1.138 GB, free: 17.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/21.77, allocations: 3.938 kB / 1.138 GB, free: 17.3 MB / 0.5607 GB (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)