Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|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.core.Phi.im|aimc.stator.core.Phi.re|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.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|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.core.Phi.im|aimc.stator.core.Phi.re|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.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 96.3 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001109, allocations: 184.9 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004665/0.0004666, allocations: 19.44 kB / 280.8 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09091, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01204/0.103, allocations: 10.96 MB / 339.3 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009413/0.1125, allocations: 4.623 MB / 343.9 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.1151, allocations: 59.75 kB / 344 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003576/0.1187, allocations: 0.8007 MB / 344.8 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004928/0.1237, allocations: 1.207 MB / 346 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.1265, allocations: 0.682 MB / 346.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006333/0.1328, allocations: 2.956 MB / 349.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004499/0.1374, allocations: 2.273 MB / 351.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.1399, allocations: 1.347 MB / 353.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002985/0.1429, allocations: 1.622 MB / 354.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008787/0.1438, allocations: 220 kB / 355.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.1457, allocations: 0.5073 MB / 355.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.1471, allocations: 0.9462 MB / 356.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.1484, allocations: 0.8082 MB / 357.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006184/0.1546, allocations: 5.902 MB / 363.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1546, allocations: 0 / 363.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1546, allocations: 4 kB / 363.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.1548, allocations: 0 / 363.2 MB, free: 1.039 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.0112/0.166, allocations: 4.244 MB / 367.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.1661, allocations: 16.02 kB / 367.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.1711, allocations: 0.8809 MB / 368.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005841/0.177, allocations: 2.503 MB / 370.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.1773, allocations: 246.7 kB / 371.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.1786, allocations: 339.9 kB / 371.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.1887, allocations: 4.492 MB / 376 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.846e-05/0.1888, allocations: 7.984 kB / 376 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003469/0.1892, allocations: 140 kB / 376.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.1894, allocations: 150.7 kB / 376.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2043/0.3937, allocations: 3.881 MB / 380.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03795/0.4317, allocations: 14.18 MB / 394.3 MB, free: 39.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009696/0.4415, allocations: 6.93 MB / 401.2 MB, free: 33.08 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01073/0.4523, allocations: 3.645 MB / 404.9 MB, free: 30.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.229e-05/0.4524, allocations: 51.44 kB / 404.9 MB, free: 30.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=169): time 7.845e-06/0.4524, allocations: 0.7656 kB / 404.9 MB, free: 30.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=189): time 0.02524/0.4777, allocations: 8.064 MB / 413 MB, free: 25.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.4778, allocations: 75.47 kB / 413.1 MB, free: 25.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005074/0.4829, allocations: 2.565 MB / 415.6 MB, free: 23.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004173/0.4833, allocations: 60.12 kB / 415.7 MB, free: 23.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.4846, allocations: 1.598 MB / 417.3 MB, free: 22.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008702/0.4854, allocations: 0.6313 MB / 417.9 MB, free: 21.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.4856, allocations: 44 kB / 418 MB, free: 21.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4858, allocations: 381.9 kB / 418.3 MB, free: 21.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.4873, allocations: 0.9057 MB / 419.2 MB, free: 20.22 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.4887, allocations: 1.285 MB / 420.5 MB, free: 18.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.4902, allocations: 1.123 MB / 421.7 MB, free: 17.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4902, allocations: 4 kB / 421.7 MB, free: 17.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.005244/0.4955, allocations: 3.069 MB / 424.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.4956, allocations: 8 kB / 424.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/0.4956, allocations: 15.06 kB / 424.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/0.4976, allocations: 0.5508 MB / 425.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/0.5003, allocations: 439.4 kB / 425.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/0.512, allocations: 7.235 MB / 433 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/0.5147, allocations: 91.86 kB / 433.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003056/0.515, allocations: 71.98 kB / 433.1 MB, free: 5.934 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * Array equations: 2 * 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%) 6,(7,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0029/0.518, allocations: 1.165 MB / 434.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007872/0.5187, allocations: 256.9 kB / 434.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00701/0.5258, allocations: 2.898 MB / 437.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.426e-05/0.5259, allocations: 23.98 kB / 437.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.5259, allocations: 8 kB / 437.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.5259, allocations: 7.969 kB / 437.5 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/0.5422, allocations: 6.336 MB / 443.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/0.5423, allocations: 0 / 443.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/0.5443, allocations: 287.7 kB / 444.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00239/0.5467, allocations: 0.6165 MB / 444.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002236/0.5469, allocations: 44.23 kB / 444.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/0.5644, allocations: 10.79 MB / 455.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5644, allocations: 0 / 455.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.5754, allocations: 4.242 MB / 459.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/0.5774, allocations: 0.533 MB / 460.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005665/0.578, allocations: 45.19 kB / 460.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.5797, allocations: 99.88 kB / 460.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/0.5802, allocations: 137.7 kB / 460.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000188/0.5804, allocations: 55.97 kB / 460.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004257/0.5847, allocations: 1.795 MB / 462.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5847, allocations: 0 / 462.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003631/0.5884, allocations: 0.6897 MB / 463.1 MB, free: 7.227 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.x) * 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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001285/0.5897, allocations: 434.5 kB / 463.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005599/0.5953, allocations: 2.842 MB / 466.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.5953, allocations: 0 / 466.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003302/0.5986, allocations: 1.985 MB / 468.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/0.6013, allocations: 0.5322 MB / 468.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.615, allocations: 8.353 MB / 477.3 MB, free: 9.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002648/0.6177, allocations: 2.696 MB / 480 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001951/0.6197, allocations: 0.5005 MB / 480.5 MB, free: 5.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/0.6202, allocations: 175.3 kB / 480.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.6202, allocations: 0 / 480.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of Templates: time 0.06245/0.6826, allocations: 33.68 MB / 0.5023 GB, free: 3.875 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_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_withLosses/AIMC_withLosses.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches