Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, 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/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.29/1.29, allocations: 205.1 MB / 222 MB, free: 4.746 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.00135/0.001351, allocations: 51.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2166, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01808/0.2347, allocations: 19.23 MB / 343.9 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.2458, allocations: 5.628 MB / 349.5 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.2493, allocations: 99.5 kB / 349.6 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003652/0.2529, allocations: 1.111 MB / 350.8 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005578/0.2585, allocations: 1.721 MB / 352.5 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00258/0.2611, allocations: 1.084 MB / 353.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008075/0.2692, allocations: 7.111 MB / 360.7 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004923/0.2741, allocations: 4.438 MB / 365.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003271/0.2774, allocations: 2.425 MB / 367.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00373/0.2812, allocations: 3.253 MB / 370.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007706/0.282, allocations: 480 kB / 371.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001623/0.2836, allocations: 0.7612 MB / 372 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.2849, allocations: 1.632 MB / 373.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002813/0.2877, allocations: 3.06 MB / 376.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007925/0.2957, allocations: 10.26 MB / 387 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2957, allocations: 0 / 387 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2957, allocations: 0 / 387 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001988/0.2959, allocations: 0 / 387 MB, free: 5.57 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01503/0.3109, allocations: 6.691 MB / 393.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.311, allocations: 16.02 kB / 393.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.3162, allocations: 1.071 MB / 394.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00713/0.3233, allocations: 3.397 MB / 398.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.3237, allocations: 386.7 kB / 398.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/0.325, allocations: 0.5039 MB / 399 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01518/0.3402, allocations: 6.949 MB / 406 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.3404, allocations: 11.91 kB / 406 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005569/0.341, allocations: 216 kB / 406.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/0.3412, allocations: 238.2 kB / 406.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01086/0.3521, allocations: 5.919 MB / 412.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03737/0.3895, allocations: 21.37 MB / 433.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008118/0.3977, allocations: 8.693 MB / 442.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003734/0.4014, allocations: 2.366 MB / 444.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/0.4117, allocations: 6.143 MB / 450.9 MB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.4118, allocations: 56.56 kB / 451 MB, free: 3.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.857e-06/0.4118, allocations: 0 / 451 MB, free: 3.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.2007/0.6126, allocations: 11.28 MB / 462.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.6127, allocations: 77.03 kB / 462.3 MB, free: 105.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004978/0.6177, allocations: 2.998 MB / 465.3 MB, free: 104.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003587/0.618, allocations: 67.05 kB / 465.4 MB, free: 104.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.6193, allocations: 2.305 MB / 467.7 MB, free: 102.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006403/0.62, allocations: 0.8123 MB / 468.5 MB, free: 101.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007618/0.6208, allocations: 0.5048 MB / 469 MB, free: 101.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.6208, allocations: 306 kB / 469.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.6228, allocations: 1.353 MB / 470.7 MB, free: 100.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/0.6249, allocations: 2.131 MB / 472.8 MB, free: 99.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004078/0.629, allocations: 3.689 MB / 476.5 MB, free: 97.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/0.629, allocations: 11.69 kB / 476.5 MB, free: 97.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007048/0.6361, allocations: 4.667 MB / 481.2 MB, free: 93.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.6361, allocations: 16 kB / 481.2 MB, free: 93.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/0.6362, allocations: 24 kB / 481.2 MB, free: 93.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.6377, allocations: 0.7597 MB / 482 MB, free: 92.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.6399, allocations: 0.6357 MB / 482.6 MB, free: 91.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009015/0.6489, allocations: 13.38 MB / 496 MB, free: 77.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/0.6517, allocations: 163.8 kB / 496.1 MB, free: 77.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/0.652, allocations: 120 kB / 496.3 MB, free: 77.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002709/0.6547, allocations: 1.608 MB / 497.9 MB, free: 75.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006466/0.6553, allocations: 320.1 kB / 498.2 MB, free: 75.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.6613, allocations: 4.192 MB / 0.4906 GB, free: 70.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.6613, allocations: 24 kB / 0.4906 GB, free: 70.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.6613, allocations: 10.84 kB / 0.4906 GB, free: 70.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.6613, allocations: 11.95 kB / 0.4906 GB, free: 70.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/0.6738, allocations: 9.137 MB / 0.4996 GB, free: 61.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.6739, allocations: 8.094 kB / 0.4996 GB, free: 61.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/0.6754, allocations: 375.5 kB / 0.4999 GB, free: 61.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002157/0.6776, allocations: 0.9238 MB / 0.5008 GB, free: 60.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.6777, allocations: 73.39 kB / 0.5009 GB, free: 60.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/0.6899, allocations: 16.5 MB / 0.517 GB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.69, allocations: 14.88 kB / 0.517 GB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008744/0.6987, allocations: 6.063 MB / 0.5229 GB, free: 36.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/0.7008, allocations: 0.6923 MB / 0.5236 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/0.7019, allocations: 59.98 kB / 0.5237 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.7041, allocations: 131.9 kB / 0.5238 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/0.7046, allocations: 197.6 kB / 0.524 GB, free: 35.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001841/0.7048, allocations: 67.98 kB / 0.5241 GB, free: 35.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003648/0.7085, allocations: 2.041 MB / 0.5261 GB, free: 33.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7085, allocations: 0 / 0.5261 GB, free: 33.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004139/0.7126, allocations: 0.9831 MB / 0.527 GB, free: 32.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0006211/0.7133, allocations: 243 kB / 0.5272 GB, free: 32.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006141/0.7194, allocations: 4.568 MB / 0.5317 GB, free: 27.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.7194, allocations: 0 / 0.5317 GB, free: 27.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003866/0.7233, allocations: 3.05 MB / 0.5347 GB, free: 24.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004903/0.7282, allocations: 0.8553 MB / 0.5355 GB, free: 23.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/0.7447, allocations: 12.18 MB / 0.5474 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00409/0.7489, allocations: 3.434 MB / 0.5508 GB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002788/0.7517, allocations: 0.7659 MB / 0.5515 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008067/0.7525, allocations: 211.4 kB / 0.5517 GB, free: 6.582 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7525, allocations: 0 / 0.5517 GB, free: 6.582 MB / 382.1 MB Notification: Performance of Templates: time 0.08462/0.8371, allocations: 49.42 MB / 0.6 GB, free: 5.094 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)