Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001508/0.001507, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 86.7 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.933e-05/1.936e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 47.59 MB / 363.1 MB, free: 7.059 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4676, allocations: 108.1 MB / 471.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.4678, allocations: 85.05 kB / 471.3 MB, free: 3.977 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4027/0.8706, allocations: 79.28 MB / 0.5377 GB, free: 87.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.8706, allocations: 1.5 kB / 0.5377 GB, free: 87.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003314/0.871, allocations: 80.91 kB / 0.5377 GB, free: 87.57 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01074/0.8817, allocations: 3.202 MB / 0.5409 GB, free: 86.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.8818, allocations: 12.2 kB / 0.5409 GB, free: 86.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004679/0.8865, allocations: 0.7283 MB / 0.5416 GB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008839/0.8953, allocations: 3.343 MB / 0.5448 GB, free: 85.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/0.8956, allocations: 100.7 kB / 0.5449 GB, free: 85.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.8969, allocations: 187.5 kB / 0.5451 GB, free: 85.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007834/0.9048, allocations: 3.163 MB / 0.5482 GB, free: 85.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.9157, allocations: 3.639 MB / 0.5518 GB, free: 85.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001554/0.9159, allocations: 12.95 kB / 0.5518 GB, free: 85.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007759/0.9167, allocations: 2.812 kB / 0.5518 GB, free: 85.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.9168, allocations: 148.5 kB / 0.5519 GB, free: 85.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02177/0.9386, allocations: 12.95 MB / 0.5646 GB, free: 82.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005225/0.9439, allocations: 6.715 MB / 0.5711 GB, free: 77.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001939/0.9459, allocations: 1.317 MB / 0.5724 GB, free: 77.58 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006066/0.952, allocations: 3.513 MB / 0.5758 GB, free: 76.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.952, allocations: 50.28 kB / 0.5759 GB, free: 76.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.396e-06/0.9521, allocations: 0 / 0.5759 GB, free: 76.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.0106/0.9627, allocations: 5.192 MB / 0.581 GB, free: 73.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.9627, allocations: 66.81 kB / 0.581 GB, free: 73.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/0.9653, allocations: 1.334 MB / 0.5823 GB, free: 73.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.9654, allocations: 29.64 kB / 0.5824 GB, free: 73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007385/0.9661, allocations: 1.424 MB / 0.5837 GB, free: 71.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.9665, allocations: 480.8 kB / 0.5842 GB, free: 71.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.221e-05/0.9666, allocations: 0 / 0.5842 GB, free: 71.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.544e-05/0.9667, allocations: 376.4 kB / 0.5846 GB, free: 71.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.9676, allocations: 0.6826 MB / 0.5852 GB, free: 70.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.9686, allocations: 1.119 MB / 0.5863 GB, free: 70.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.9702, allocations: 1.024 MB / 0.5873 GB, free: 69.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.9702, allocations: 3.688 kB / 0.5873 GB, free: 69.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004065/0.9743, allocations: 2.502 MB / 0.5898 GB, free: 68.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.9743, allocations: 8.312 kB / 0.5898 GB, free: 68.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/0.9744, allocations: 15.03 kB / 0.5898 GB, free: 68.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.9757, allocations: 492.6 kB / 0.5903 GB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.9771, allocations: 387.5 kB / 0.5906 GB, free: 68.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006609/0.9838, allocations: 6.137 MB / 0.5966 GB, free: 64.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.9854, allocations: 53.44 kB / 0.5967 GB, free: 64.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/0.9856, allocations: 70.66 kB / 0.5967 GB, free: 64.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003156/0.9859, allocations: 142.1 kB / 0.5969 GB, free: 64.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.9864, allocations: 175.7 kB / 0.597 GB, free: 63.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004025/0.9904, allocations: 2.4 MB / 0.5994 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.9904, allocations: 18.19 kB / 0.5994 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.9905, allocations: 3.594 kB / 0.5994 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.9905, allocations: 11.83 kB / 0.5994 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008346/0.9988, allocations: 4.964 MB / 0.6043 GB, free: 60.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.9989, allocations: 3.656 kB / 0.6043 GB, free: 60.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009632/0.9998, allocations: 220.9 kB / 0.6045 GB, free: 60.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/1.001, allocations: 491 kB / 0.605 GB, free: 60.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/1.001, allocations: 18.89 kB / 0.605 GB, free: 60.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007648/1.009, allocations: 10.02 MB / 0.6148 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.009, allocations: 3.656 kB / 0.6148 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004799/1.014, allocations: 3.499 MB / 0.6182 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.015, allocations: 440.4 kB / 0.6186 GB, free: 49.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/1.015, allocations: 3.781 kB / 0.6186 GB, free: 49.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/1.016, allocations: 50.8 kB / 0.6186 GB, free: 49.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/1.017, allocations: 118.6 kB / 0.6188 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.349e-05/1.017, allocations: 39.2 kB / 0.6188 GB, free: 49.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001732/1.018, allocations: 1.009 MB / 0.6198 GB, free: 49.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.018, allocations: 0 / 0.6198 GB, free: 49.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002479/1.021, allocations: 0.5465 MB / 0.6203 GB, free: 49.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005358/1.021, allocations: 331.8 kB / 0.6206 GB, free: 49.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003443/1.025, allocations: 2.17 MB / 0.6228 GB, free: 48.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.025, allocations: 4.25 kB / 0.6228 GB, free: 48.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/1.027, allocations: 1.6 MB / 0.6243 GB, free: 46.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/1.029, allocations: 360.7 kB / 0.6247 GB, free: 46.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/1.042, allocations: 4.698 MB / 0.6293 GB, free: 42.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/1.045, allocations: 2.431 MB / 0.6316 GB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001769/1.046, allocations: 386.8 kB / 0.632 GB, free: 40.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/1.047, allocations: 123.1 kB / 0.6321 GB, free: 39.99 MB / 410.7 MB Notification: Performance of SimCode: time 8.81e-07/1.047, allocations: 3.938 kB / 0.6321 GB, free: 39.98 MB / 410.7 MB Notification: Performance of Templates: time 0.03802/1.085, allocations: 24.45 MB / 0.656 GB, free: 23.35 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches