Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",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.001013/0.001013, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.291/1.291, allocations: 222.9 MB / 238.9 MB, free: 4.758 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.001437/0.001437, allocations: 188.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03813/0.03813, allocations: 8.796 MB / 348.1 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001424, allocations: 80.38 kB / 410.5 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08402, allocations: 51.56 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02457/0.1086, allocations: 26.53 MB / 488.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01808/0.1267, allocations: 7.989 MB / 496.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005004/0.1318, allocations: 187.4 kB / 496.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01828/0.1501, allocations: 8.826 MB / 0.4937 GB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.1601, allocations: 3.047 MB / 0.4967 GB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005038/0.1652, allocations: 1.694 MB / 0.4984 GB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01496/0.1802, allocations: 12.23 MB / 0.5103 GB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2243/0.4045, allocations: 20.23 MB / 0.5301 GB, free: 16.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007626/0.4121, allocations: 5.601 MB / 0.5355 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.4224, allocations: 6.863 MB / 0.5422 GB, free: 14.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006298/0.4288, allocations: 1.215 MB / 0.5434 GB, free: 14.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007555/0.4363, allocations: 1.573 MB / 0.545 GB, free: 14.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00688/0.4432, allocations: 2.976 MB / 0.5479 GB, free: 14.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01439/0.4577, allocations: 6.263 MB / 0.554 GB, free: 12.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01985/0.4775, allocations: 24.19 MB / 0.5776 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4776, allocations: 3.125 kB / 0.5776 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4776, allocations: 0 / 0.5776 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006125/0.4782, allocations: 0 / 0.5776 GB, free: 0.8047 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04438/0.5226, allocations: 14.57 MB / 0.5918 GB, free: 7.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.5227, allocations: 12.03 kB / 0.5919 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006228/0.5289, allocations: 1.781 MB / 0.5936 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04562/0.5745, allocations: 8.437 MB / 0.6018 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01504/0.5896, allocations: 7.454 MB / 0.6091 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008542/0.5905, allocations: 0.8057 MB / 0.6099 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005148/0.5957, allocations: 1.068 MB / 0.6109 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04821/0.6439, allocations: 18.3 MB / 0.6288 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004718/0.6444, allocations: 19.91 kB / 0.6288 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003684/0.6481, allocations: 449.5 kB / 0.6293 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006529/0.6488, allocations: 0.6639 MB / 0.6299 GB, free: 1.098 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03431/0.6831, allocations: 17.54 MB / 0.647 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09246/0.7756, allocations: 58.7 MB / 0.7044 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2107/0.9863, allocations: 37.49 MB / 0.741 GB, free: 121.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007127/0.9935, allocations: 4.152 MB / 0.745 GB, free: 121.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004913/0.994, allocations: 195.7 kB / 0.7452 GB, free: 121.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.178e-05/0.9941, allocations: 86.95 kB / 0.7453 GB, free: 121 MB / 494.1 MB Notification: Performance of pre-optimization done (n=524): time 6.923e-06/0.9941, allocations: 1.531 kB / 0.7453 GB, free: 121 MB / 494.1 MB Notification: Performance of matching and sorting (n=530): time 0.04483/1.039, allocations: 21.86 MB / 0.7667 GB, free: 117.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/1.039, allocations: 105.8 kB / 0.7668 GB, free: 117.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005487/1.045, allocations: 4.173 MB / 0.7708 GB, free: 115.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007353/1.045, allocations: 113 kB / 0.7709 GB, free: 115.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/1.047, allocations: 4.511 MB / 0.7753 GB, free: 112.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/1.049, allocations: 1.797 MB / 0.7771 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001754/1.05, allocations: 1.358 MB / 0.7784 GB, free: 110 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.84e-05/1.051, allocations: 301.1 kB / 0.7787 GB, free: 109.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004104/1.055, allocations: 3.48 MB / 0.7821 GB, free: 108.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004867/1.059, allocations: 5.914 MB / 0.7879 GB, free: 104 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.07, allocations: 10.08 MB / 0.7977 GB, free: 96.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-05/1.07, allocations: 24 kB / 0.7977 GB, free: 96.78 MB / 494.1 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.01614/1.086, allocations: 11 MB / 0.8085 GB, free: 86.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/1.086, allocations: 36 kB / 0.8085 GB, free: 86.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.086, allocations: 81.53 kB / 0.8086 GB, free: 86.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003672/1.09, allocations: 1.378 MB / 0.8099 GB, free: 85.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005825/1.096, allocations: 1.611 MB / 0.8115 GB, free: 83.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/1.108, allocations: 10.57 MB / 0.8218 GB, free: 72.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/1.113, allocations: 411.3 kB / 0.8222 GB, free: 72.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008717/1.114, allocations: 333.2 kB / 0.8226 GB, free: 72.12 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (843): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005971/1.12, allocations: 4.167 MB / 0.8266 GB, free: 67.94 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009409/1.121, allocations: 478.1 kB / 0.8271 GB, free: 67.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/1.132, allocations: 8.535 MB / 0.8354 GB, free: 58.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0115/1.144, allocations: 7.136 MB / 0.8424 GB, free: 51.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/1.144, allocations: 8 kB / 0.8424 GB, free: 51.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.289e-05/1.144, allocations: 31.89 kB / 0.8424 GB, free: 51.56 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02959/1.174, allocations: 19.4 MB / 0.8614 GB, free: 31.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/1.174, allocations: 4 kB / 0.8614 GB, free: 31.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003203/1.177, allocations: 0.9362 MB / 0.8623 GB, free: 30.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003084/1.18, allocations: 1.231 MB / 0.8635 GB, free: 29.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003696/1.18, allocations: 116 kB / 0.8636 GB, free: 29.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.191, allocations: 9.3 MB / 0.8727 GB, free: 20.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.191, allocations: 4 kB / 0.8727 GB, free: 20.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/1.207, allocations: 12.36 MB / 0.8848 GB, free: 7.613 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003829/1.211, allocations: 1.163 MB / 0.8859 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001774/1.213, allocations: 92 kB / 0.886 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00308/1.216, allocations: 275.7 kB / 0.8862 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007609/1.217, allocations: 356.4 kB / 0.8866 GB, free: 5.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002907/1.217, allocations: 148 kB / 0.8867 GB, free: 5.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003553/1.221, allocations: 2.815 MB / 0.8895 GB, free: 2.742 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.293e-06/1.221, allocations: 4 kB / 0.8895 GB, free: 2.738 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005612/1.226, allocations: 1.939 MB / 0.8914 GB, free: 0.8086 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (502): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1856/1.412, allocations: 13.12 MB / 0.9042 GB, free: 140.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01429/1.426, allocations: 8.771 MB / 0.9127 GB, free: 139.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/1.426, allocations: 0 / 0.9127 GB, free: 139.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006364/1.433, allocations: 4.205 MB / 0.9169 GB, free: 138.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005353/1.438, allocations: 1.068 MB / 0.9179 GB, free: 138.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1317/1.57, allocations: 80.57 MB / 0.9966 GB, free: 74.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007738/1.577, allocations: 7.011 MB / 1.003 GB, free: 68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006515/1.584, allocations: 2.32 MB / 1.006 GB, free: 65.69 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007431/1.591, allocations: 3.842 MB / 1.009 GB, free: 61.85 MB / 494.1 MB Notification: Performance of SimCode: time 1.482e-06/1.591, allocations: 0 / 1.009 GB, free: 61.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3779/1.969, allocations: 148.3 MB / 1.154 GB, free: 115.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/1.97, allocations: 231.9 kB / 1.154 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.676/6.646, allocations: 6.562 kB / 1.154 GB, free: 115.5 MB / 0.4981 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)