Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002219/0.002219, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001091, allocations: 96.86 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.89e-05/1.9e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3417, allocations: 47.57 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.5184, allocations: 107.9 MB / 470.2 MB, free: 10.37 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.5188, allocations: 83.95 kB / 470.3 MB, free: 10.29 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5718/1.091, allocations: 79.29 MB / 0.5367 GB, free: 93.79 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.104e-06/1.091, allocations: 0 / 0.5367 GB, free: 93.79 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003315/1.091, allocations: 78.38 kB / 0.5368 GB, free: 93.77 MB / 395.1 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.01298/1.104, allocations: 3.201 MB / 0.5399 GB, free: 92.18 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/1.104, allocations: 10.38 kB / 0.5399 GB, free: 92.18 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006073/1.11, allocations: 0.7258 MB / 0.5406 GB, free: 91.93 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/1.122, allocations: 3.348 MB / 0.5439 GB, free: 90.28 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/1.123, allocations: 105 kB / 0.544 GB, free: 90.28 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001256/1.124, allocations: 191.2 kB / 0.5442 GB, free: 90.27 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009701/1.134, allocations: 3.156 MB / 0.5473 GB, free: 88.87 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/1.146, allocations: 3.65 MB / 0.5508 GB, free: 87.21 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001485/1.146, allocations: 2.406 kB / 0.5508 GB, free: 87.21 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007308/1.147, allocations: 3.219 kB / 0.5508 GB, free: 87.21 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/1.147, allocations: 143.4 kB / 0.551 GB, free: 87.19 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03273/1.18, allocations: 12.94 MB / 0.5636 GB, free: 77.17 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008638/1.189, allocations: 6.731 MB / 0.5702 GB, free: 69.6 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003315/1.192, allocations: 1.317 MB / 0.5715 GB, free: 68.28 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009635/1.202, allocations: 3.515 MB / 0.5749 GB, free: 64.72 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/1.202, allocations: 47.81 kB / 0.575 GB, free: 64.66 MB / 395.1 MB Notification: Performance of pre-optimization done (n=122): time 4.92e-06/1.202, allocations: 0 / 0.575 GB, free: 64.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=142): time 0.01635/1.218, allocations: 5.187 MB / 0.58 GB, free: 59.38 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/1.218, allocations: 68.72 kB / 0.5801 GB, free: 59.3 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/1.221, allocations: 1.338 MB / 0.5814 GB, free: 57.96 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003146/1.221, allocations: 29.7 kB / 0.5814 GB, free: 57.93 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009095/1.222, allocations: 1.38 MB / 0.5828 GB, free: 56.53 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/1.223, allocations: 472.9 kB / 0.5832 GB, free: 56.06 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/1.223, allocations: 4 kB / 0.5832 GB, free: 56.06 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/1.223, allocations: 374.8 kB / 0.5836 GB, free: 55.68 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/1.225, allocations: 0.6795 MB / 0.5842 GB, free: 55 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001702/1.226, allocations: 1.126 MB / 0.5853 GB, free: 53.68 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/1.229, allocations: 1.021 MB / 0.5863 GB, free: 52.66 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/1.229, allocations: 4 kB / 0.5863 GB, free: 52.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006238/1.235, allocations: 2.391 MB / 0.5887 GB, free: 50.25 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/1.235, allocations: 12 kB / 0.5887 GB, free: 50.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/1.235, allocations: 16 kB / 0.5887 GB, free: 50.23 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/1.238, allocations: 492.6 kB / 0.5892 GB, free: 49.74 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/1.24, allocations: 387.4 kB / 0.5895 GB, free: 49.36 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/1.251, allocations: 6.136 MB / 0.5955 GB, free: 42.99 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/1.253, allocations: 44.11 kB / 0.5956 GB, free: 42.95 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000331/1.254, allocations: 75.94 kB / 0.5957 GB, free: 42.87 MB / 395.1 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.0003888/1.254, allocations: 145.4 kB / 0.5958 GB, free: 42.72 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/1.254, allocations: 173.8 kB / 0.596 GB, free: 42.55 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006178/1.261, allocations: 2.404 MB / 0.5983 GB, free: 40.09 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/1.261, allocations: 12 kB / 0.5983 GB, free: 40.08 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/1.261, allocations: 8 kB / 0.5983 GB, free: 40.07 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-05/1.261, allocations: 11.91 kB / 0.5983 GB, free: 40.06 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/1.273, allocations: 4.983 MB / 0.6032 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/1.274, allocations: 0 / 0.6032 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001926/1.275, allocations: 219.9 kB / 0.6034 GB, free: 34.77 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.278, allocations: 483.8 kB / 0.6039 GB, free: 34.28 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003065/1.278, allocations: 15.98 kB / 0.6039 GB, free: 34.26 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.29, allocations: 10.02 MB / 0.6137 GB, free: 23.66 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.29, allocations: 0 / 0.6137 GB, free: 23.66 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007933/1.298, allocations: 3.507 MB / 0.6171 GB, free: 20.03 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.3, allocations: 438.8 kB / 0.6175 GB, free: 19.58 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006006/1.3, allocations: 11.92 kB / 0.6175 GB, free: 19.57 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.302, allocations: 43.95 kB / 0.6176 GB, free: 19.53 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004126/1.303, allocations: 117.1 kB / 0.6177 GB, free: 19.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.303, allocations: 43.92 kB / 0.6177 GB, free: 19.37 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002187/1.305, allocations: 1.012 MB / 0.6187 GB, free: 18.36 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.01e-07/1.305, allocations: 0 / 0.6187 GB, free: 18.36 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003367/1.309, allocations: 0.5392 MB / 0.6192 GB, free: 17.82 MB / 395.1 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.0008167/1.309, allocations: 324.4 kB / 0.6195 GB, free: 17.52 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005344/1.315, allocations: 2.172 MB / 0.6217 GB, free: 15.33 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/1.315, allocations: 8.125 kB / 0.6217 GB, free: 15.32 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003448/1.318, allocations: 1.583 MB / 0.6232 GB, free: 13.7 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003232/1.322, allocations: 361.5 kB / 0.6236 GB, free: 13.34 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/1.335, allocations: 4.687 MB / 0.6281 GB, free: 8.594 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003184/1.338, allocations: 2.366 MB / 0.6305 GB, free: 6.199 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008843/1.339, allocations: 131.4 kB / 0.6306 GB, free: 6.07 MB / 395.1 MB Notification: Performance of SimCode: time 1.302e-06/1.339, allocations: 8 kB / 0.6306 GB, free: 6.062 MB / 395.1 MB Notification: Performance of Templates: time 0.4376/1.777, allocations: 90.38 MB / 0.7189 GB, free: 65.27 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches