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.001448/0.001448, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001118/0.001118, allocations: 90.17 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005222/0.0005221, allocations: 11.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3333, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.51, allocations: 108.6 MB / 483.2 MB, free: 4.062 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.5103, allocations: 91.94 kB / 483.3 MB, free: 3.973 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5685/1.079, allocations: 80.3 MB / 0.5504 GB, free: 65.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.905e-06/1.079, allocations: 0 / 0.5504 GB, free: 65.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003631/1.079, allocations: 75.94 kB / 0.5504 GB, free: 64.98 MB / 378.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.016/1.095, allocations: 3.529 MB / 0.5539 GB, free: 61.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/1.095, allocations: 15.97 kB / 0.5539 GB, free: 61.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00636/1.102, allocations: 0.7334 MB / 0.5546 GB, free: 60.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/1.115, allocations: 3.375 MB / 0.5579 GB, free: 57.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003456/1.115, allocations: 238.2 kB / 0.5581 GB, free: 56.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001468/1.116, allocations: 311.9 kB / 0.5584 GB, free: 56.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01455/1.131, allocations: 4.176 MB / 0.5625 GB, free: 52.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002007/1.131, allocations: 7.906 kB / 0.5625 GB, free: 52.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00119/1.133, allocations: 136 kB / 0.5626 GB, free: 52.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/1.133, allocations: 142.2 kB / 0.5628 GB, free: 52.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01169/1.144, allocations: 3.456 MB / 0.5662 GB, free: 48.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03714/1.182, allocations: 13.56 MB / 0.5794 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.192, allocations: 6.873 MB / 0.5861 GB, free: 26.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009826/1.202, allocations: 3.258 MB / 0.5893 GB, free: 23.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/1.202, allocations: 43.88 kB / 0.5893 GB, free: 23.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=130): time 4.959e-06/1.202, allocations: 4 kB / 0.5893 GB, free: 23.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02417/1.226, allocations: 6.8 MB / 0.596 GB, free: 16.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/1.226, allocations: 64.72 kB / 0.596 GB, free: 16.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004384/1.23, allocations: 1.627 MB / 0.5976 GB, free: 14.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003572/1.231, allocations: 53.7 kB / 0.5977 GB, free: 14.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/1.232, allocations: 1.345 MB / 0.599 GB, free: 13.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007619/1.233, allocations: 0.5083 MB / 0.5995 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/1.233, allocations: 36 kB / 0.5995 GB, free: 12.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/1.233, allocations: 374.8 kB / 0.5999 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/1.236, allocations: 0.7847 MB / 0.6006 GB, free: 11.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002662/1.238, allocations: 1.226 MB / 0.6018 GB, free: 10.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/1.241, allocations: 0.998 MB / 0.6028 GB, free: 9.277 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/1.241, allocations: 4 kB / 0.6028 GB, free: 9.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00793/1.249, allocations: 2.578 MB / 0.6053 GB, free: 6.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.354e-05/1.249, allocations: 13.09 kB / 0.6054 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.485e-05/1.249, allocations: 12 kB / 0.6054 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/1.252, allocations: 0.5017 MB / 0.6059 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003171/1.255, allocations: 399.4 kB / 0.6062 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01284/1.268, allocations: 6.557 MB / 0.6126 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/1.271, allocations: 84.11 kB / 0.6127 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004951/1.271, allocations: 71.98 kB / 0.6128 GB, free: 14.78 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * 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): 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,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003571/1.275, allocations: 1.048 MB / 0.6138 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007839/1.276, allocations: 201.5 kB / 0.614 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009087/1.285, allocations: 2.578 MB / 0.6165 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.647e-05/1.285, allocations: 12 kB / 0.6165 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.101e-05/1.285, allocations: 8 kB / 0.6165 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.516e-05/1.285, allocations: 7.969 kB / 0.6165 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01819/1.303, allocations: 5.645 MB / 0.6221 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.79e-05/1.303, allocations: 4.188 kB / 0.6221 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/1.306, allocations: 227.7 kB / 0.6223 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/1.308, allocations: 0.5037 MB / 0.6228 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003669/1.309, allocations: 39.98 kB / 0.6228 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01749/1.326, allocations: 10.6 MB / 0.6332 GB, free: 9.023 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.326, allocations: 0 / 0.6332 GB, free: 9.023 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.338, allocations: 3.756 MB / 0.6368 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/1.34, allocations: 466.5 kB / 0.6373 GB, free: 4.668 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007881/1.34, allocations: 31.98 kB / 0.6373 GB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/1.343, allocations: 75.95 kB / 0.6374 GB, free: 4.562 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007186/1.344, allocations: 121 kB / 0.6375 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/1.344, allocations: 39.98 kB / 0.6375 GB, free: 4.406 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003904/1.348, allocations: 1.25 MB / 0.6388 GB, free: 3.164 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.348, allocations: 4 kB / 0.6388 GB, free: 3.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004422/1.352, allocations: 0.6329 MB / 0.6394 GB, free: 2.527 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * 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%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/1.353, allocations: 359.7 kB / 0.6397 GB, free: 2.172 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3106/1.664, allocations: 2.446 MB / 0.6421 GB, free: 93.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.664, allocations: 3.938 kB / 0.6421 GB, free: 93.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004268/1.668, allocations: 1.746 MB / 0.6438 GB, free: 93.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003984/1.672, allocations: 482.2 kB / 0.6443 GB, free: 93.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/1.691, allocations: 7.165 MB / 0.6513 GB, free: 90.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004187/1.695, allocations: 2.379 MB / 0.6536 GB, free: 89.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.696, allocations: 143.8 kB / 0.6537 GB, free: 89.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.442e-06/1.696, allocations: 0 / 0.6537 GB, free: 89.62 MB / 410.7 MB Notification: Performance of Templates: time 0.1551/1.851, allocations: 92.84 MB / 0.7444 GB, free: 30.68 MB / 410.7 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