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.0008194/0.0008194, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.0008309/0.0008309, allocations: 156.4 kB / 25.44 MB, free: 8.855 MB / 18.57 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 0.8042/0.8042, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.212e-06/1.212e-06, allocations: 0 / 299.7 MB, free: 2.969 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.62e-05/2.741e-05, allocations: 2.281 kB / 299.7 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.1584/0.1584, allocations: 11.89 MB / 311.6 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00672/0.1652, allocations: 4.642 MB / 316.3 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.1662, allocations: 92.03 kB / 316.4 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001808/0.168, allocations: 1.029 MB / 317.4 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002336/0.1703, allocations: 1.432 MB / 318.8 MB, free: 4.312 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.1716, allocations: 0.9718 MB / 319.8 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003392/0.175, allocations: 4.525 MB / 324.3 MB, free: 1.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.1767, allocations: 1.759 MB / 326.1 MB, free: 384 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003433/0.1802, allocations: 2.986 MB / 329.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002017/0.1822, allocations: 1.95 MB / 331 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005203/0.1827, allocations: 0.5321 MB / 331.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.1839, allocations: 0.876 MB / 332.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008182/0.1847, allocations: 1.397 MB / 333.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001148/0.1859, allocations: 1.568 MB / 335.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004618/0.1905, allocations: 7.397 MB / 342.8 MB, free: 3.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1905, allocations: 4 kB / 342.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1905, allocations: 0 / 342.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.719e-05/0.1906, allocations: 0 / 342.8 MB, free: 3.195 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.00585/0.1964, allocations: 4.963 MB / 347.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1964, allocations: 11.98 kB / 347.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002108/0.1986, allocations: 0.893 MB / 348.7 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.2012, allocations: 2.572 MB / 351.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.2014, allocations: 255.1 kB / 351.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003375/0.2017, allocations: 336.2 kB / 351.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004776/0.2065, allocations: 4.698 MB / 356.5 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.056e-05/0.2065, allocations: 4 kB / 356.5 MB, free: 5.254 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.2067, allocations: 136 kB / 356.6 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.2069, allocations: 154.7 kB / 356.8 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004264/0.2111, allocations: 3.895 MB / 360.7 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.2229, allocations: 12.12 MB / 372.8 MB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003498/0.2264, allocations: 2.964 MB / 375.8 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.2281, allocations: 1.571 MB / 377.3 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004101/0.2322, allocations: 3.575 MB / 380.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.2322, allocations: 51.81 kB / 381 MB, free: 12.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 4.218e-06/0.2322, allocations: 0 / 381 MB, free: 12.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=185): time 0.009787/0.242, allocations: 7.449 MB / 388.4 MB, free: 5.141 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.2421, allocations: 73.39 kB / 388.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002244/0.2443, allocations: 2.418 MB / 390.9 MB, free: 2.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-05/0.2444, allocations: 57.7 kB / 391 MB, free: 2.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008898/0.2453, allocations: 1.665 MB / 392.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003318/0.2456, allocations: 0.6468 MB / 393.3 MB, free: 212 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/0.246, allocations: 331.5 kB / 393.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.916e-05/0.2461, allocations: 305.1 kB / 393.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009653/0.247, allocations: 0.9096 MB / 394.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.2485, allocations: 1.327 MB / 396.1 MB, free: 13.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002236/0.2507, allocations: 2.352 MB / 398.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2507, allocations: 3.938 kB / 398.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.003321/0.254, allocations: 3.047 MB / 401.5 MB, free: 7.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.2541, allocations: 12 kB / 401.6 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.2541, allocations: 11.94 kB / 401.6 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008787/0.255, allocations: 0.5558 MB / 402.1 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.2561, allocations: 435.3 kB / 402.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006003/0.2621, allocations: 7.191 MB / 409.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008173/0.2629, allocations: 84.02 kB / 409.8 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.263, allocations: 80.28 kB / 409.9 MB, free: 15.05 MB / 378.7 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.00161/0.2647, allocations: 1.165 MB / 411.1 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.2649, allocations: 250.3 kB / 411.3 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.268, allocations: 2.845 MB / 414.1 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.87e-05/0.268, allocations: 20 kB / 414.2 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.2681, allocations: 16.06 kB / 414.2 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.2681, allocations: 15.95 kB / 414.2 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006167/0.2742, allocations: 5.464 MB / 419.7 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.2742, allocations: 0 / 419.7 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000637/0.2749, allocations: 279.7 kB / 419.9 MB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008948/0.2758, allocations: 0.6168 MB / 420.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.2759, allocations: 47.98 kB / 420.6 MB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007735/0.2836, allocations: 10.78 MB / 431.4 MB, free: 9.039 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2836, allocations: 4.062 kB / 431.4 MB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004509/0.2881, allocations: 4.121 MB / 435.5 MB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000816/0.2889, allocations: 470.2 kB / 436 MB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.2891, allocations: 43.92 kB / 436 MB, free: 4.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.2896, allocations: 83.94 kB / 436.1 MB, free: 4.285 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.2899, allocations: 145.7 kB / 436.2 MB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/0.2899, allocations: 47.98 kB / 436.3 MB, free: 4.094 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001596/0.2915, allocations: 1.689 MB / 438 MB, free: 2.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2915, allocations: 0 / 438 MB, free: 2.387 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002026/0.2936, allocations: 0.6913 MB / 438.7 MB, free: 1.695 MB / 394.7 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.0008629/0.2944, allocations: 479.5 kB / 439.1 MB, free: 1.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.2976, allocations: 2.733 MB / 441.9 MB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.2976, allocations: 4 kB / 441.9 MB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.2993, allocations: 1.845 MB / 443.7 MB, free: 12.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.3005, allocations: 494.8 kB / 444.2 MB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007766/0.3083, allocations: 6.961 MB / 451.2 MB, free: 5.078 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.31, allocations: 2.018 MB / 453.2 MB, free: 3.031 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.3104, allocations: 176.4 kB / 453.3 MB, free: 2.859 MB / 410.7 MB Notification: Performance of SimCode: time 8.01e-07/0.3104, allocations: 0 / 453.3 MB, free: 2.859 MB / 410.7 MB Notification: Performance of Templates: time 0.1884/0.4988, allocations: 100.4 MB / 0.5408 GB, free: 74.85 MB / 426.7 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.899472244083881]