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.002554/0.002554, allocations: 99.53 kB / 21.73 MB, free: 2.684 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.002055/0.002055, allocations: 169.2 kB / 25.03 MB, free: 8.414 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 1.372/1.372, allocations: 158.6 MB / 186.8 MB, free: 2.891 MB / 170.7 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 2.044e-06/2.044e-06, allocations: 0 / 250.4 MB, free: 7.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.082e-05/3.286e-05, allocations: 2.312 kB / 250.4 MB, free: 7.785 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.03682/0.03685, allocations: 13.29 MB / 263.7 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.05091, allocations: 4.791 MB / 268.5 MB, free: 5.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.05322, allocations: 87.44 kB / 268.6 MB, free: 5.535 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003761/0.05698, allocations: 1.04 MB / 269.6 MB, free: 4.488 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005186/0.06217, allocations: 1.432 MB / 271.1 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003027/0.0652, allocations: 0.9892 MB / 272 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007341/0.07254, allocations: 4.517 MB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.07622, allocations: 1.763 MB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006299/0.08251, allocations: 3.018 MB / 281.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004772/0.08729, allocations: 2.108 MB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001408/0.08869, allocations: 0.5312 MB / 284 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002805/0.0915, allocations: 0.8898 MB / 284.9 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002332/0.09383, allocations: 1.426 MB / 286.3 MB, free: 3.695 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003767/0.0976, allocations: 1.582 MB / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.1087, allocations: 7.428 MB / 295.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.1087, allocations: 3.984 kB / 295.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1087, allocations: 0 / 295.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001794/0.1089, allocations: 0 / 295.3 MB, free: 10.66 MB / 282.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.01545/0.1243, allocations: 5.666 MB / 301 MB, free: 4.918 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1244, allocations: 15.98 kB / 301 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005476/0.1298, allocations: 1.321 MB / 302.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005934/0.1358, allocations: 2.446 MB / 304.8 MB, free: 1.066 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005016/0.1363, allocations: 251.1 kB / 305 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007284/0.137, allocations: 340.3 kB / 305.3 MB, free: 500 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009714/0.1467, allocations: 4.842 MB / 310.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.15e-05/0.1468, allocations: 0 / 310.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003682/0.1472, allocations: 140 kB / 310.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002123/0.1474, allocations: 154.6 kB / 310.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007992/0.1554, allocations: 3.458 MB / 313.9 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03673/0.1921, allocations: 21.78 MB / 335.7 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006488/0.1986, allocations: 2.777 MB / 338.5 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/0.2015, allocations: 1.441 MB / 339.9 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008363/0.2099, allocations: 3.667 MB / 343.6 MB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/0.21, allocations: 54.7 kB / 343.6 MB, free: 8.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=165): time 3.677e-06/0.21, allocations: 3.938 kB / 343.6 MB, free: 8.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=185): time 0.01738/0.2273, allocations: 6.733 MB / 350.4 MB, free: 2.168 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.2274, allocations: 69.41 kB / 350.4 MB, free: 2.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1156/0.343, allocations: 2.611 MB / 353.1 MB, free: 95.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.3433, allocations: 57.23 kB / 353.1 MB, free: 95.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0012/0.3445, allocations: 1.893 MB / 355 MB, free: 95.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006344/0.3451, allocations: 0.7212 MB / 355.7 MB, free: 95.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006266/0.3458, allocations: 444.7 kB / 356.2 MB, free: 95.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.048e-05/0.3458, allocations: 478.6 kB / 356.6 MB, free: 94.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.347, allocations: 0.7164 MB / 357.3 MB, free: 94.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.3484, allocations: 1.373 MB / 358.7 MB, free: 94.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/0.3511, allocations: 2.312 MB / 361 MB, free: 93.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.3511, allocations: 7.188 kB / 361 MB, free: 93.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004728/0.3558, allocations: 2.768 MB / 363.8 MB, free: 92.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.3559, allocations: 7.438 kB / 363.8 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.3559, allocations: 13.91 kB / 363.8 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.3577, allocations: 0.6377 MB / 364.5 MB, free: 92.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.3595, allocations: 429.8 kB / 364.9 MB, free: 92.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007846/0.3673, allocations: 8.09 MB / 373 MB, free: 86.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.3689, allocations: 82.19 kB / 373.1 MB, free: 86.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/0.3691, allocations: 77.27 kB / 373.1 MB, free: 86.16 MB / 330.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.001507/0.3706, allocations: 0.9912 MB / 374.1 MB, free: 85.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005642/0.3712, allocations: 298.5 kB / 374.4 MB, free: 85.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004292/0.3755, allocations: 2.493 MB / 376.9 MB, free: 82.85 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.3755, allocations: 18.41 kB / 376.9 MB, free: 82.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/0.3755, allocations: 16 kB / 376.9 MB, free: 82.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/0.3756, allocations: 7.969 kB / 376.9 MB, free: 82.81 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.3857, allocations: 6.237 MB / 383.2 MB, free: 76.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.3857, allocations: 3.828 kB / 383.2 MB, free: 76.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.3869, allocations: 275.5 kB / 383.5 MB, free: 76.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.3889, allocations: 0.7134 MB / 384.2 MB, free: 75.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.389, allocations: 43.81 kB / 384.2 MB, free: 75.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008954/0.3979, allocations: 12.68 MB / 396.9 MB, free: 62.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3979, allocations: 3.938 kB / 396.9 MB, free: 62.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005471/0.4034, allocations: 3.614 MB / 400.5 MB, free: 58.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.4045, allocations: 446.2 kB / 401 MB, free: 58.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002674/0.4048, allocations: 36 kB / 401 MB, free: 58.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.4058, allocations: 83.94 kB / 401.1 MB, free: 58.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/0.4061, allocations: 149.6 kB / 401.2 MB, free: 58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.4062, allocations: 55.97 kB / 401.3 MB, free: 57.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001811/0.4081, allocations: 1.529 MB / 402.8 MB, free: 56.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4081, allocations: 0 / 402.8 MB, free: 56.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002377/0.4104, allocations: 0.6874 MB / 403.5 MB, free: 55.72 MB / 330.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.002557/0.413, allocations: 472.5 kB / 403.9 MB, free: 55.35 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004172/0.4172, allocations: 2.701 MB / 406.6 MB, free: 52.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4172, allocations: 0 / 406.6 MB, free: 52.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002523/0.4197, allocations: 2.052 MB / 408.7 MB, free: 50.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.4221, allocations: 0.5038 MB / 409.2 MB, free: 49.99 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.4313, allocations: 6.559 MB / 415.8 MB, free: 43.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.4328, allocations: 1.934 MB / 417.7 MB, free: 41.42 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001282/0.4341, allocations: 407 kB / 418.1 MB, free: 41.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.4345, allocations: 160.5 kB / 418.3 MB, free: 40.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.904e-06/0.4345, allocations: 0 / 418.3 MB, free: 40.86 MB / 330.7 MB Notification: Performance of Templates: time 0.04904/0.4836, allocations: 35.17 MB / 453.4 MB, free: 5.621 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) [Timeout 240] 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.306458781007677]