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.001405/0.001405, allocations: 175 kB / 16.72 MB, free: 5.082 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.505/1.505, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007618/0.0007617, allocations: 92.92 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003138, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2421, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.009946/0.2521, allocations: 11.3 MB / 386.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007299/0.2595, allocations: 3.986 MB / 390.4 MB, free: 33.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.2613, allocations: 61.03 kB / 390.4 MB, free: 33.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.2633, allocations: 0.7284 MB / 391.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.2665, allocations: 1.061 MB / 392.2 MB, free: 31.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.268, allocations: 0.5884 MB / 392.8 MB, free: 30.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003934/0.272, allocations: 4.09 MB / 396.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004104/0.2761, allocations: 2.628 MB / 399.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002529/0.2786, allocations: 1.28 MB / 400.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003083/0.2818, allocations: 1.653 MB / 402.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.2824, allocations: 208 kB / 402.7 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.2841, allocations: 411.7 kB / 403.1 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008527/0.285, allocations: 0.7746 MB / 403.9 MB, free: 19.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002368/0.2874, allocations: 1.685 MB / 405.5 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006585/0.294, allocations: 5.524 MB / 411.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.294, allocations: 0 / 411.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.294, allocations: 0 / 411.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001231/0.2942, allocations: 0 / 411.1 MB, free: 12.57 MB / 298.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.01441/0.3086, allocations: 3.727 MB / 414.8 MB, free: 8.773 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.3087, allocations: 11.97 kB / 414.8 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005622/0.3143, allocations: 0.8163 MB / 415.6 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004133/0.3185, allocations: 2.257 MB / 417.9 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.3186, allocations: 230.6 kB / 418.1 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007253/0.3194, allocations: 320 kB / 418.4 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008061/0.3275, allocations: 4.234 MB / 422.7 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-05/0.3276, allocations: 15.92 kB / 422.7 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004274/0.328, allocations: 120 kB / 422.8 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.3281, allocations: 146.2 kB / 422.9 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007636/0.3358, allocations: 3.644 MB / 426.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02319/0.359, allocations: 13.58 MB / 440.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006388/0.3654, allocations: 6.861 MB / 447 MB, free: 7.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002364/0.3678, allocations: 1.422 MB / 448.4 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006345/0.3742, allocations: 3.655 MB / 452.1 MB, free: 2.004 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.3743, allocations: 43.56 kB / 452.1 MB, free: 1.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=124): time 3.627e-06/0.3743, allocations: 0 / 452.1 MB, free: 1.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=144): time 0.01408/0.3884, allocations: 6.681 MB / 458.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.3885, allocations: 72.72 kB / 458.9 MB, free: 11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002858/0.3914, allocations: 1.851 MB / 460.7 MB, free: 9.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.3915, allocations: 49.7 kB / 460.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.3926, allocations: 1.412 MB / 462.2 MB, free: 7.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004339/0.393, allocations: 0.4929 MB / 462.7 MB, free: 7.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/0.3931, allocations: 32 kB / 462.7 MB, free: 7.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3933, allocations: 373.9 kB / 463.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.3945, allocations: 0.7691 MB / 463.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.3961, allocations: 1.224 MB / 465.1 MB, free: 4.578 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002846/0.3989, allocations: 2.108 MB / 467.2 MB, free: 2.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.3989, allocations: 4 kB / 467.2 MB, free: 2.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004645/0.4036, allocations: 2.667 MB / 469.9 MB, free: 15.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.4036, allocations: 15.94 kB / 469.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.4037, allocations: 20.28 kB / 469.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/0.4051, allocations: 0.4975 MB / 470.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.4066, allocations: 395.4 kB / 470.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007857/0.4145, allocations: 6.408 MB / 477.2 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.416, allocations: 79.88 kB / 477.3 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.4162, allocations: 71.98 kB / 477.3 MB, free: 7.832 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * 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.001947/0.4181, allocations: 1.044 MB / 478.4 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.4184, allocations: 201.6 kB / 478.6 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.4226, allocations: 2.5 MB / 481.1 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.4226, allocations: 16 kB / 481.1 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.4226, allocations: 4 kB / 481.1 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.4226, allocations: 7.969 kB / 481.1 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008604/0.4313, allocations: 5.548 MB / 486.7 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4313, allocations: 0 / 486.7 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.4323, allocations: 227.8 kB / 486.9 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.4336, allocations: 0.4951 MB / 487.4 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.4337, allocations: 39.92 kB / 487.4 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.4439, allocations: 10.45 MB / 497.9 MB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.444, allocations: 4.031 kB / 497.9 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005679/0.4496, allocations: 3.576 MB / 0.4897 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.4507, allocations: 458.6 kB / 0.4901 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.451, allocations: 35.88 kB / 0.4902 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/0.4519, allocations: 75.94 kB / 0.4902 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/0.4522, allocations: 109.1 kB / 0.4903 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.844e-05/0.4523, allocations: 43.98 kB / 0.4904 GB, free: 14.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002095/0.4544, allocations: 1.274 MB / 0.4916 GB, free: 12.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4544, allocations: 0 / 0.4916 GB, free: 12.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002127/0.4566, allocations: 0.5939 MB / 0.4922 GB, free: 12.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * 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 (102): * Single equations (assignments): 97 * 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.0003596/0.4569, allocations: 161.5 kB / 0.4923 GB, free: 11.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004422/0.4614, allocations: 2.397 MB / 0.4947 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.4614, allocations: 1.875 kB / 0.4947 GB, free: 9.566 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.4642, allocations: 1.725 MB / 0.4964 GB, free: 7.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/0.467, allocations: 498.6 kB / 0.4969 GB, free: 7.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4776, allocations: 7.106 MB / 0.5038 GB, free: 140 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1596/0.6372, allocations: 2.316 MB / 0.5061 GB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/0.6379, allocations: 146.4 kB / 0.5062 GB, free: 119.9 MB / 394.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6379, allocations: 0 / 0.5062 GB, free: 119.9 MB / 394.7 MB Notification: Performance of Templates: time 0.08082/0.7188, allocations: 96.89 MB / 0.6008 GB, free: 33.21 MB / 394.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/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches