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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 84.77 kB / 21.43 MB, free: 296 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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=50000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 3.938 kB / 299 MB, free: 8.688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.329e-05/2.481e-05, allocations: 2.281 kB / 299 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01552/0.01554, allocations: 11.91 MB / 310.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.02563, allocations: 4.623 MB / 315.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00263/0.02826, allocations: 87.44 kB / 315.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.03144, allocations: 1.033 MB / 316.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004368/0.03581, allocations: 1.44 MB / 318.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002344/0.03815, allocations: 0.9804 MB / 319.1 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1506/0.1888, allocations: 4.51 MB / 323.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/0.1917, allocations: 1.749 MB / 325.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005054/0.1967, allocations: 2.988 MB / 328.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004471/0.2012, allocations: 1.946 MB / 330.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001829/0.203, allocations: 0.5336 MB / 330.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.2061, allocations: 0.8769 MB / 331.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001974/0.2081, allocations: 1.407 MB / 333.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003264/0.2114, allocations: 1.568 MB / 334.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008071/0.2194, allocations: 7.388 MB / 342 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.2194, allocations: 0 / 342 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2194, allocations: 2.031 kB / 342 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002441/0.2197, allocations: 1.062 kB / 342 MB, free: 12.08 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.01272/0.2324, allocations: 4.969 MB / 347 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2324, allocations: 13.27 kB / 347 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.2369, allocations: 0.9048 MB / 347.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005477/0.2424, allocations: 2.561 MB / 350.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.2425, allocations: 247.6 kB / 350.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006993/0.2432, allocations: 341.3 kB / 351.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008276/0.2515, allocations: 4.699 MB / 355.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.516e-05/0.2516, allocations: 3.938 kB / 355.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003211/0.2519, allocations: 135 kB / 355.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000142/0.252, allocations: 155.6 kB / 356 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006494/0.2585, allocations: 3.903 MB / 359.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02524/0.2838, allocations: 12.11 MB / 372.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.2903, allocations: 2.965 MB / 375 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003125/0.2935, allocations: 1.578 MB / 376.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007578/0.3011, allocations: 3.568 MB / 380.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.3011, allocations: 47.88 kB / 380.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=165): time 3.386e-06/0.3011, allocations: 0 / 380.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.01817/0.3193, allocations: 7.468 MB / 387.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.3193, allocations: 69.41 kB / 387.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003707/0.323, allocations: 2.426 MB / 390.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.3232, allocations: 57.7 kB / 390.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001524/0.3247, allocations: 1.658 MB / 391.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005979/0.3253, allocations: 0.6458 MB / 392.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006147/0.3259, allocations: 335.5 kB / 392.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3261, allocations: 301.1 kB / 393.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.3278, allocations: 0.9097 MB / 394.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/0.3299, allocations: 1.334 MB / 395.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003867/0.3338, allocations: 2.347 MB / 397.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3338, allocations: 4 kB / 397.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005913/0.3397, allocations: 3.043 MB / 400.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.3397, allocations: 16.19 kB / 400.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.3398, allocations: 12 kB / 400.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.3414, allocations: 0.5555 MB / 401.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.3432, allocations: 437.1 kB / 401.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.3535, allocations: 7.178 MB / 409 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.3556, allocations: 92.77 kB / 409.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002554/0.3558, allocations: 76.05 kB / 409.1 MB, free: 13.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002618/0.3585, allocations: 1.163 MB / 410.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005886/0.359, allocations: 250.4 kB / 410.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005934/0.365, allocations: 2.846 MB / 413.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.433e-05/0.365, allocations: 20 kB / 413.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.365, allocations: 8 kB / 413.4 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/0.365, allocations: 11.97 kB / 413.4 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.3763, allocations: 5.471 MB / 418.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.3763, allocations: 0 / 418.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/0.3777, allocations: 280.5 kB / 419.2 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/0.3795, allocations: 0.6166 MB / 419.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.3796, allocations: 47.98 kB / 419.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/0.3925, allocations: 10.78 MB / 430.6 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3925, allocations: 3.984 kB / 430.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00816/0.4006, allocations: 4.123 MB / 434.8 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.4021, allocations: 470.2 kB / 435.2 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003575/0.4024, allocations: 32 kB / 435.2 MB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.4037, allocations: 90.05 kB / 435.3 MB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003984/0.4041, allocations: 149 kB / 435.5 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.4042, allocations: 55.97 kB / 435.5 MB, free: 3.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002756/0.407, allocations: 1.689 MB / 437.2 MB, free: 1.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.407, allocations: 0 / 437.2 MB, free: 1.449 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00294/0.4099, allocations: 0.6835 MB / 437.9 MB, free: 0.7656 MB / 382.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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001792/0.4117, allocations: 473.7 kB / 438.4 MB, free: 336 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005886/0.4176, allocations: 2.735 MB / 441.1 MB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4176, allocations: 3.844 kB / 441.1 MB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/0.421, allocations: 1.834 MB / 442.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.4238, allocations: 0.49 MB / 443.4 MB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.4376, allocations: 6.959 MB / 450.4 MB, free: 4.277 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002727/0.4403, allocations: 2.071 MB / 452.5 MB, free: 2.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001681/0.442, allocations: 479.1 kB / 452.9 MB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000518/0.4425, allocations: 160.5 kB / 453.1 MB, free: 1.547 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4425, allocations: 4 kB / 453.1 MB, free: 1.543 MB / 398.1 MB Notification: Performance of Templates: time 0.2037/0.6462, allocations: 34.97 MB / 488.1 MB, free: 142.3 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable aimc.stator.zeroInductor.i0 in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat. Warning: Get data of variable aimc.stator.zeroInductor.i0 from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat failed! " [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.333424262702465]