Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 92.02 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 183.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.000452, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2128, allocations: 47.58 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02024/0.2331, allocations: 18.86 MB / 346.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.2476, allocations: 6.798 MB / 353.4 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004608/0.2523, allocations: 123.4 kB / 353.5 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004242/0.2566, allocations: 1.259 MB / 354.7 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008335/0.2649, allocations: 2.045 MB / 356.8 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004379/0.2693, allocations: 0.9475 MB / 357.7 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.2814, allocations: 5.757 MB / 363.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008549/0.29, allocations: 4.845 MB / 368.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005277/0.2954, allocations: 2.736 MB / 371.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006442/0.3018, allocations: 3.299 MB / 374.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002185/0.3041, allocations: 460 kB / 374.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003218/0.3073, allocations: 0.6597 MB / 375.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002578/0.3099, allocations: 1.838 MB / 377.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003148/0.3131, allocations: 1.576 MB / 378.9 MB, free: 152 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01496/0.328, allocations: 11.68 MB / 390.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3281, allocations: 0 / 390.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3281, allocations: 4 kB / 390.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000641/0.3288, allocations: 0 / 390.6 MB, free: 4.43 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02085/0.3496, allocations: 7.528 MB / 398.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3497, allocations: 8.031 kB / 398.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007056/0.3567, allocations: 1.318 MB / 399.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01171/0.3685, allocations: 4.882 MB / 404.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006121/0.3691, allocations: 0.4977 MB / 404.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00216/0.3713, allocations: 0.6677 MB / 405.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01939/0.3907, allocations: 9.356 MB / 414.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001649/0.3909, allocations: 15.83 kB / 414.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006956/0.3916, allocations: 280 kB / 415.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002748/0.3919, allocations: 305.3 kB / 415.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01649/0.4084, allocations: 8.044 MB / 423.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05228/0.4607, allocations: 29.52 MB / 453 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2018/0.6626, allocations: 11.97 MB / 465 MB, free: 93.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/0.677, allocations: 6.88 MB / 471.8 MB, free: 91.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.426e-05/0.6771, allocations: 77.48 kB / 471.9 MB, free: 91.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=316): time 5.57e-06/0.6771, allocations: 0 / 471.9 MB, free: 91.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=335): time 0.0279/0.705, allocations: 16.44 MB / 488.4 MB, free: 83.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.7051, allocations: 84.05 kB / 488.4 MB, free: 83.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/0.7101, allocations: 3.926 MB / 492.4 MB, free: 81.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005374/0.7107, allocations: 81.3 kB / 492.4 MB, free: 81.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.7121, allocations: 3.077 MB / 495.5 MB, free: 78.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00079/0.7129, allocations: 1.138 MB / 496.7 MB, free: 77.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.7131, allocations: 76 kB / 496.7 MB, free: 77.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.7133, allocations: 462.3 kB / 497.2 MB, free: 77.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002458/0.7157, allocations: 1.917 MB / 499.1 MB, free: 75.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/0.7183, allocations: 2.861 MB / 0.4902 GB, free: 71.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.7211, allocations: 2.346 MB / 0.4925 GB, free: 69.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/0.7211, allocations: 8 kB / 0.4925 GB, free: 69.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.008845/0.73, allocations: 6.517 MB / 0.4989 GB, free: 62.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.73, allocations: 16.94 kB / 0.4989 GB, free: 62.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.507e-05/0.7301, allocations: 29.97 kB / 0.4989 GB, free: 62.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002436/0.7325, allocations: 1.268 MB / 0.5001 GB, free: 61.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.7354, allocations: 0.8425 MB / 0.501 GB, free: 60.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.7496, allocations: 21.19 MB / 0.5217 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/0.7534, allocations: 212 kB / 0.5219 GB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006908/0.7541, allocations: 156 kB / 0.522 GB, free: 37.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004255/0.7584, allocations: 2.187 MB / 0.5241 GB, free: 35.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/0.7596, allocations: 446.6 kB / 0.5246 GB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009869/0.7695, allocations: 6.193 MB / 0.5306 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.151e-05/0.7695, allocations: 38.53 kB / 0.5306 GB, free: 28.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.736e-05/0.7696, allocations: 19.95 kB / 0.5307 GB, free: 28.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-05/0.7696, allocations: 15.94 kB / 0.5307 GB, free: 28.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02176/0.7914, allocations: 12.59 MB / 0.543 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.7915, allocations: 384 / 0.543 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/0.7935, allocations: 483.3 kB / 0.5434 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003638/0.7972, allocations: 1.635 MB / 0.545 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003432/0.7976, allocations: 75.97 kB / 0.5451 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02615/0.8237, allocations: 30.76 MB / 0.5751 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.8238, allocations: 11.88 kB / 0.5752 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01679/0.8406, allocations: 9.211 MB / 0.5842 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003107/0.8437, allocations: 0.929 MB / 0.5851 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001288/0.845, allocations: 72 kB / 0.5851 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/0.8478, allocations: 203.8 kB / 0.5853 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007452/0.8486, allocations: 282 kB / 0.5856 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002799/0.8488, allocations: 95.97 kB / 0.5857 GB, free: 1.547 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005213/0.8541, allocations: 2.654 MB / 0.5883 GB, free: 14.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8541, allocations: 0 / 0.5883 GB, free: 14.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006059/0.8602, allocations: 1.339 MB / 0.5896 GB, free: 13.55 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007642/0.8609, allocations: 242.6 kB / 0.5898 GB, free: 13.31 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01062/0.8716, allocations: 6.47 MB / 0.5961 GB, free: 6.625 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.8716, allocations: 0 / 0.5961 GB, free: 6.625 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007342/0.879, allocations: 4.874 MB / 0.6009 GB, free: 1.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005929/0.8849, allocations: 1.244 MB / 0.6021 GB, free: 280 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0286/0.9135, allocations: 15.85 MB / 0.6176 GB, free: 340 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1865/1.1, allocations: 4.613 MB / 0.6221 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003787/1.104, allocations: 1.067 MB / 0.6231 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007372/1.105, allocations: 275.7 kB / 0.6234 GB, free: 145.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/1.105, allocations: 0 / 0.6234 GB, free: 145.7 MB / 446.1 MB Notification: Performance of Templates: time 0.1038/1.209, allocations: 68.41 MB / 0.6902 GB, free: 93.47 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) Environment - environmentSimulation: