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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 112.7 kB / 17.06 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.001577/0.001577, allocations: 198.9 kB / 18 MB, free: 5.078 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.354/1.354, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001222/0.001222, allocations: 55.94 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07412/0.07536, allocations: 46.61 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.1985/0.2739, allocations: 27.88 MB / 402.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01865/0.2926, allocations: 7.727 MB / 410.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006386/0.299, allocations: 175.6 kB / 410.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006408/0.3055, allocations: 1.912 MB / 412.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.3161, allocations: 2.639 MB / 414.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007106/0.3232, allocations: 1.708 MB / 416.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02227/0.3455, allocations: 12.57 MB / 429.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0173/0.3629, allocations: 10.96 MB / 440.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009425/0.3723, allocations: 5.932 MB / 446 MB, free: 7.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/0.3834, allocations: 6.726 MB / 452.7 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005747/0.3892, allocations: 1.672 MB / 454.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008437/0.3977, allocations: 1.867 MB / 456.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005954/0.4037, allocations: 3.803 MB / 460.1 MB, free: 9.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01404/0.4177, allocations: 6.909 MB / 467 MB, free: 2.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02694/0.4447, allocations: 21.68 MB / 488.7 MB, free: 13.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4448, allocations: 4 kB / 488.7 MB, free: 13.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4448, allocations: 4 kB / 488.7 MB, free: 13.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008118/0.4456, allocations: 0 / 488.7 MB, free: 13.16 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04255/0.4882, allocations: 13.18 MB / 0.4901 GB, free: 15.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4882, allocations: 15.89 kB / 0.4901 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01363/0.5019, allocations: 2.317 MB / 0.4924 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01712/0.519, allocations: 7.541 MB / 0.4997 GB, free: 5.879 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008196/0.5199, allocations: 0.7468 MB / 0.5005 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003542/0.5234, allocations: 0.9922 MB / 0.5014 GB, free: 4.137 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03601/0.5595, allocations: 14.42 MB / 0.5155 GB, free: 5.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002796/0.5598, allocations: 11.92 kB / 0.5155 GB, free: 5.559 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/0.562, allocations: 416 kB / 0.5159 GB, free: 5.152 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/0.5624, allocations: 456.4 kB / 0.5164 GB, free: 4.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/0.5878, allocations: 12.53 MB / 0.5286 GB, free: 8.156 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4491/1.037, allocations: 43.48 MB / 0.5711 GB, free: 117.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02259/1.06, allocations: 25.09 MB / 0.5956 GB, free: 96.38 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008087/1.068, allocations: 4.886 MB / 0.6003 GB, free: 94.54 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02143/1.089, allocations: 12.14 MB / 0.6122 GB, free: 89 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/1.089, allocations: 80.69 kB / 0.6123 GB, free: 88.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=425): time 5.871e-06/1.089, allocations: 0 / 0.6123 GB, free: 88.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=431): time 0.0463/1.136, allocations: 21.96 MB / 0.6337 GB, free: 75.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/1.136, allocations: 98.8 kB / 0.6338 GB, free: 74.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006599/1.142, allocations: 5.39 MB / 0.6391 GB, free: 69.55 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007634/1.143, allocations: 101.7 kB / 0.6392 GB, free: 69.45 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002028/1.145, allocations: 4.464 MB / 0.6435 GB, free: 64.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.147, allocations: 1.434 MB / 0.6449 GB, free: 63.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/1.149, allocations: 0.8773 MB / 0.6458 GB, free: 62.65 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.167e-05/1.149, allocations: 317 kB / 0.6461 GB, free: 62.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00536/1.154, allocations: 2.426 MB / 0.6485 GB, free: 59.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006278/1.16, allocations: 3.689 MB / 0.6521 GB, free: 55.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01206/1.172, allocations: 6.342 MB / 0.6583 GB, free: 48.83 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.239e-05/1.173, allocations: 8 kB / 0.6583 GB, free: 48.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01924/1.192, allocations: 8.226 MB / 0.6663 GB, free: 40.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/1.192, allocations: 24.94 kB / 0.6663 GB, free: 40.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.039e-05/1.192, allocations: 40 kB / 0.6664 GB, free: 40.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004891/1.197, allocations: 1.532 MB / 0.6679 GB, free: 38.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005621/1.203, allocations: 1.026 MB / 0.6689 GB, free: 37.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02822/1.231, allocations: 29.29 MB / 0.6975 GB, free: 6.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/1.235, allocations: 219.8 kB / 0.6977 GB, free: 6.375 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007762/1.236, allocations: 200 kB / 0.6979 GB, free: 6.18 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 16 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1],rheostat3.booleanStep[3].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[1].y,rheostatM.booleanStep[5].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 14 systems {(1,1,100.0%), (1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (4,22,68.8%), (2,6,100.0%), (2,6,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.004862/1.241, allocations: 3.305 MB / 0.7011 GB, free: 2.859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/1.242, allocations: 0.5712 MB / 0.7016 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/1.255, allocations: 7.969 MB / 0.7094 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-05/1.255, allocations: 40 kB / 0.7095 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.658e-05/1.256, allocations: 31.98 kB / 0.7095 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.131e-05/1.256, allocations: 23.92 kB / 0.7095 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03301/1.289, allocations: 16.73 MB / 0.7259 GB, free: 9.176 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/1.289, allocations: 4 kB / 0.7259 GB, free: 9.172 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002297/1.291, allocations: 455.3 kB / 0.7263 GB, free: 8.727 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005735/1.297, allocations: 2.355 MB / 0.7286 GB, free: 6.34 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000671/1.297, allocations: 99.97 kB / 0.7287 GB, free: 6.242 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2642/1.562, allocations: 38.04 MB / 0.7658 GB, free: 159.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/1.562, allocations: 11.44 kB / 0.7658 GB, free: 159.1 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01994/1.582, allocations: 11.37 MB / 0.777 GB, free: 154.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004268/1.586, allocations: 1.2 MB / 0.7781 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001404/1.587, allocations: 82.25 kB / 0.7782 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003213/1.591, allocations: 224.9 kB / 0.7784 GB, free: 153.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/1.592, allocations: 425.6 kB / 0.7788 GB, free: 153.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003219/1.592, allocations: 117.3 kB / 0.7789 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006841/1.599, allocations: 3.688 MB / 0.7825 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.91e-07/1.599, allocations: 3.812 kB / 0.7825 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009109/1.608, allocations: 1.87 MB / 0.7844 GB, free: 152.3 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.inertiaRotor.w,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.inertiaRotor.w,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,5,100.0%), (6,46,72.2%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (11,56,49.6%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/1.609, allocations: 251.3 kB / 0.7846 GB, free: 152.1 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01084/1.62, allocations: 8.03 MB / 0.7924 GB, free: 148 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.62, allocations: 3.188 kB / 0.7924 GB, free: 148 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007983/1.628, allocations: 5.728 MB / 0.798 GB, free: 144.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008275/1.637, allocations: 1.701 MB / 0.7997 GB, free: 144.3 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03234/1.669, allocations: 18.48 MB / 0.8178 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006491/1.675, allocations: 6.373 MB / 0.824 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004456/1.68, allocations: 1.299 MB / 0.8252 GB, free: 123 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/1.681, allocations: 351.4 kB / 0.8256 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of SimCode: time 7.62e-07/1.681, allocations: 1.422 kB / 0.8256 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of Templates: time 0.1395/1.821, allocations: 95.91 MB / 0.9192 GB, free: 26.8 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)