Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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: translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001566/0.001566, 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.374/1.374, allocations: 222.9 MB / 239.2 MB, free: 4.598 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.001559/0.001559, allocations: 188.5 kB / 289.5 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03534/0.03534, allocations: 8.795 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 82.95 kB / 411.1 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1341, allocations: 51.56 MB / 462.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.05228/0.1864, allocations: 45.32 MB / 0.496 GB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03035/0.2168, allocations: 11.79 MB / 0.5076 GB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01319/0.2301, allocations: 358.8 kB / 0.5079 GB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03057/0.2607, allocations: 12.34 MB / 0.52 GB, free: 8.246 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02085/0.2816, allocations: 4.806 MB / 0.5246 GB, free: 3.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01161/0.2932, allocations: 2.921 MB / 0.5275 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3053/0.5985, allocations: 20.79 MB / 0.5478 GB, free: 6.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07904/0.6776, allocations: 42.27 MB / 0.5891 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02399/0.7017, allocations: 10.91 MB / 0.5997 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0309/0.7326, allocations: 12.77 MB / 0.6122 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01273/0.7454, allocations: 3.133 MB / 0.6153 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01594/0.7614, allocations: 3.545 MB / 0.6187 GB, free: 7.457 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01482/0.7762, allocations: 6.25 MB / 0.6248 GB, free: 1.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02851/0.8048, allocations: 11.9 MB / 0.6365 GB, free: 5.535 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0582/0.863, allocations: 41.19 MB / 0.6767 GB, free: 13.18 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.8631, allocations: 0 / 0.6767 GB, free: 13.18 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.8631, allocations: 0 / 0.6767 GB, free: 13.18 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.002421/0.8655, allocations: 0 / 0.6767 GB, free: 13.18 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.0945/0.96, allocations: 23.95 MB / 0.7001 GB, free: 5.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.9601, allocations: 12.03 kB / 0.7001 GB, free: 5.258 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5357/1.496, allocations: 11.29 MB / 0.7111 GB, free: 145 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03423/1.53, allocations: 13.05 MB / 0.7239 GB, free: 142.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001598/1.532, allocations: 1.364 MB / 0.7252 GB, free: 141.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007169/1.539, allocations: 1.792 MB / 0.7269 GB, free: 141.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07299/1.612, allocations: 29.58 MB / 0.7558 GB, free: 125.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007355/1.613, allocations: 27.73 kB / 0.7558 GB, free: 125.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006949/1.62, allocations: 0.7471 MB / 0.7566 GB, free: 124.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008696/1.621, allocations: 0.983 MB / 0.7575 GB, free: 123.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0544/1.675, allocations: 27.28 MB / 0.7842 GB, free: 96.13 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1525/1.827, allocations: 94.02 MB / 0.876 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4644/2.292, allocations: 51.98 MB / 0.9268 GB, free: 103.4 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0135/2.305, allocations: 7.279 MB / 0.9339 GB, free: 103.3 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03526/2.341, allocations: 20.08 MB / 0.9535 GB, free: 97.04 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.174e-05/2.341, allocations: 110.8 kB / 0.9536 GB, free: 96.95 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=677): time 8.145e-06/2.341, allocations: 3.938 kB / 0.9536 GB, free: 96.95 MB / 0.4983 GB Notification: Performance of matching and sorting (n=685): time 0.08418/2.425, allocations: 38.14 MB / 0.9908 GB, free: 80.49 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/2.425, allocations: 149 kB / 0.991 GB, free: 80.39 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/2.436, allocations: 7.105 MB / 0.9979 GB, free: 76.14 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.001253/2.437, allocations: 137.7 kB / 0.998 GB, free: 76 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.003839/2.441, allocations: 7.808 MB / 1.006 GB, free: 68.14 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.002813/2.444, allocations: 2.328 MB / 1.008 GB, free: 65.83 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/2.446, allocations: 1.866 MB / 1.01 GB, free: 63.95 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 6.572e-05/2.446, allocations: 301.1 kB / 1.01 GB, free: 63.66 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/2.453, allocations: 4.856 MB / 1.015 GB, free: 58.79 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008225/2.461, allocations: 8.337 MB / 1.023 GB, free: 48.86 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/2.476, allocations: 14 MB / 1.037 GB, free: 33.21 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.322e-05/2.476, allocations: 35.94 kB / 1.037 GB, free: 33.18 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02743/2.503, allocations: 16.07 MB / 1.052 GB, free: 16.95 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/2.504, allocations: 52 kB / 1.052 GB, free: 16.9 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001848/2.504, allocations: 112.8 kB / 1.052 GB, free: 16.79 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005692/2.509, allocations: 2.592 MB / 1.055 GB, free: 14.17 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007881/2.517, allocations: 2.102 MB / 1.057 GB, free: 12.06 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2759/2.793, allocations: 30.81 MB / 1.087 GB, free: 136.3 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007572/2.801, allocations: 0.5237 MB / 1.088 GB, free: 136.3 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.803, allocations: 460.8 kB / 1.088 GB, free: 136.3 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01697/2.82, allocations: 6.766 MB / 1.095 GB, free: 136.2 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002876/2.823, allocations: 0.7627 MB / 1.095 GB, free: 136.2 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.025/2.848, allocations: 13.09 MB / 1.108 GB, free: 133.9 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0119/2.86, allocations: 8.21 MB / 1.116 GB, free: 130.7 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-05/2.86, allocations: 35.22 kB / 1.116 GB, free: 130.7 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.616e-05/2.86, allocations: 35.36 kB / 1.116 GB, free: 130.7 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04224/2.902, allocations: 27.97 MB / 1.144 GB, free: 119.2 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.7e-05/2.902, allocations: 3.875 kB / 1.144 GB, free: 119.2 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005078/2.908, allocations: 1.108 MB / 1.145 GB, free: 119.1 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006011/2.914, allocations: 2.655 MB / 1.147 GB, free: 118.4 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/2.915, allocations: 150 kB / 1.147 GB, free: 118.3 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03098/2.946, allocations: 35.9 MB / 1.183 GB, free: 90.68 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/2.946, allocations: 4 kB / 1.183 GB, free: 90.68 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02625/2.972, allocations: 18.76 MB / 1.201 GB, free: 72.05 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004251/2.976, allocations: 1.756 MB / 1.203 GB, free: 70.68 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/2.978, allocations: 128 kB / 1.203 GB, free: 70.55 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/2.982, allocations: 391.6 kB / 1.203 GB, free: 70.17 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/2.983, allocations: 0.5287 MB / 1.204 GB, free: 69.64 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004477/2.984, allocations: 196 kB / 1.204 GB, free: 69.45 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.006468/2.99, allocations: 4.789 MB / 1.208 GB, free: 64.68 MB / 0.5139 GB Notification: Performance of sort global known variables: time 4.51e-07/2.99, allocations: 0 / 1.208 GB, free: 64.68 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01036/3, allocations: 3.06 MB / 1.211 GB, free: 61.63 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,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 (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001122/3.002, allocations: 357.6 kB / 1.212 GB, free: 61.29 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.05173/3.053, allocations: 24.86 MB / 1.236 GB, free: 36.37 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/3.053, allocations: 7.938 kB / 1.236 GB, free: 36.36 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01097/3.064, allocations: 7.566 MB / 1.243 GB, free: 28.7 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01186/3.076, allocations: 2.14 MB / 1.246 GB, free: 26.62 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2584/3.335, allocations: 32.31 MB / 1.277 GB, free: 149.7 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02039/3.355, allocations: 11.34 MB / 1.288 GB, free: 148.6 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.009932/3.365, allocations: 3.291 MB / 1.291 GB, free: 148.4 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002115/3.367, allocations: 0.5628 MB / 1.292 GB, free: 148.4 MB / 0.5295 GB Notification: Performance of SimCode: time 1.123e-06/3.367, allocations: 0 / 1.292 GB, free: 148.4 MB / 0.5295 GB Notification: Performance of Templates: time 0.1958/3.563, allocations: 136.1 MB / 1.425 GB, free: 46.39 MB / 0.5295 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)