Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008462/0.0008461, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.086e-05/2.088e-05, allocations: 4 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08682, allocations: 47.58 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3423/0.4292, allocations: 110.3 MB / 480.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.4295, allocations: 87.89 kB / 480.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.435/0.8645, allocations: 88.24 MB / 0.5554 GB, free: 89.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.8646, allocations: 0 / 0.5554 GB, free: 89.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003422/0.8649, allocations: 92 kB / 0.5554 GB, free: 89.86 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01262/0.8776, allocations: 3.674 MB / 0.559 GB, free: 88.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.8776, allocations: 18.19 kB / 0.559 GB, free: 88.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00493/0.8826, allocations: 0.7916 MB / 0.5598 GB, free: 88.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009791/0.8924, allocations: 3.663 MB / 0.5634 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002889/0.8927, allocations: 274.3 kB / 0.5637 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.8941, allocations: 356.3 kB / 0.564 GB, free: 87.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01197/0.906, allocations: 4.85 MB / 0.5687 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.9062, allocations: 10.97 kB / 0.5687 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/0.9067, allocations: 152.6 kB / 0.5689 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001825/0.9069, allocations: 158.5 kB / 0.569 GB, free: 87.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008832/0.9157, allocations: 4.004 MB / 0.573 GB, free: 85.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03041/0.9462, allocations: 15.98 MB / 0.5886 GB, free: 77.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006767/0.953, allocations: 7.686 MB / 0.5961 GB, free: 70.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002564/0.9556, allocations: 1.659 MB / 0.5977 GB, free: 69.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008484/0.9641, allocations: 4.627 MB / 0.6022 GB, free: 67.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.9642, allocations: 49.36 kB / 0.6023 GB, free: 67.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 5.07e-06/0.9642, allocations: 3.938 kB / 0.6023 GB, free: 67.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.009259/0.9735, allocations: 5.467 MB / 0.6076 GB, free: 64.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.9736, allocations: 72.91 kB / 0.6077 GB, free: 64.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00353/0.9771, allocations: 1.876 MB / 0.6095 GB, free: 63.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.9774, allocations: 53.11 kB / 0.6095 GB, free: 63.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009004/0.9783, allocations: 1.619 MB / 0.6111 GB, free: 62.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004867/0.9788, allocations: 0.543 MB / 0.6117 GB, free: 62.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/0.9789, allocations: 35.91 kB / 0.6117 GB, free: 62.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.979, allocations: 377.9 kB / 0.6121 GB, free: 61.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.9803, allocations: 0.8788 MB / 0.6129 GB, free: 61.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.9818, allocations: 1.342 MB / 0.6142 GB, free: 60.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.9832, allocations: 1.1 MB / 0.6153 GB, free: 59.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.9832, allocations: 4 kB / 0.6153 GB, free: 59.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004645/0.9879, allocations: 3.169 MB / 0.6184 GB, free: 56.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.9879, allocations: 12.31 kB / 0.6184 GB, free: 56.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.9879, allocations: 16 kB / 0.6184 GB, free: 56.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.9896, allocations: 0.7321 MB / 0.6191 GB, free: 55.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.9915, allocations: 361.4 kB / 0.6195 GB, free: 55.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.005, allocations: 10.38 MB / 0.6296 GB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/1.008, allocations: 95.38 kB / 0.6297 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003442/1.009, allocations: 72 kB / 0.6298 GB, free: 45.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004955/1.009, allocations: 220.5 kB / 0.63 GB, free: 45.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005281/1.01, allocations: 229.2 kB / 0.6302 GB, free: 45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006946/1.017, allocations: 3.037 MB / 0.6332 GB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.051e-05/1.017, allocations: 19.95 kB / 0.6332 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/1.017, allocations: 12 kB / 0.6332 GB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.228e-05/1.017, allocations: 7.641 kB / 0.6332 GB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01454/1.032, allocations: 6.408 MB / 0.6395 GB, free: 37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/1.032, allocations: 8.031 kB / 0.6395 GB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/1.033, allocations: 170.6 kB / 0.6396 GB, free: 36.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003119/1.036, allocations: 0.9012 MB / 0.6405 GB, free: 36.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/1.036, allocations: 43.56 kB / 0.6406 GB, free: 36.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/1.054, allocations: 14.75 MB / 0.655 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.054, allocations: 0 / 0.655 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009585/1.064, allocations: 4.429 MB / 0.6593 GB, free: 16.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/1.066, allocations: 0.5178 MB / 0.6598 GB, free: 16.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005222/1.066, allocations: 39.98 kB / 0.6598 GB, free: 16.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/1.068, allocations: 83.94 kB / 0.6599 GB, free: 16.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005551/1.068, allocations: 157 kB / 0.6601 GB, free: 16.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/1.068, allocations: 55.77 kB / 0.6601 GB, free: 16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002989/1.071, allocations: 1.439 MB / 0.6615 GB, free: 14.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.071, allocations: 0 / 0.6615 GB, free: 14.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003463/1.075, allocations: 0.7345 MB / 0.6622 GB, free: 13.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008118/1.076, allocations: 415 kB / 0.6626 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005688/1.081, allocations: 2.944 MB / 0.6655 GB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/1.082, allocations: 0 / 0.6655 GB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003841/1.085, allocations: 2.2 MB / 0.6677 GB, free: 8.152 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/1.089, allocations: 0.5927 MB / 0.6682 GB, free: 7.594 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/1.1, allocations: 5.542 MB / 0.6736 GB, free: 2.043 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002269/1.102, allocations: 2.74 MB / 0.6763 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002169/1.105, allocations: 465.8 kB / 0.6768 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004482/1.105, allocations: 135.4 kB / 0.6769 GB, free: 14.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.934e-06/1.105, allocations: 0 / 0.6769 GB, free: 14.7 MB / 426.7 MB Notification: Performance of Templates: time 0.3329/1.438, allocations: 38.72 MB / 0.7147 GB, free: 91.25 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_YD/AIMC_YD.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches