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.002056/0.002056, allocations: 97.75 kB / 21.92 MB, free: 5.207 MB / 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.002292/0.002292, allocations: 202.7 kB / 25.22 MB, free: 3.141 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.609/1.609, allocations: 207.7 MB / 236.1 MB, free: 9.785 MB / 190.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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 56.44 kB / 348.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2839, allocations: 49.16 MB / 397.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01458/0.2985, allocations: 11.9 MB / 409.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.3092, allocations: 4.613 MB / 414.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003304/0.3125, allocations: 87.78 kB / 414.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004397/0.3169, allocations: 1.031 MB / 415.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006637/0.3235, allocations: 1.401 MB / 416.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003412/0.3269, allocations: 0.9712 MB / 417.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007352/0.3343, allocations: 4.336 MB / 422 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003342/0.3376, allocations: 1.748 MB / 423.7 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004393/0.342, allocations: 2.07 MB / 425.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005451/0.3475, allocations: 2.173 MB / 428 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001801/0.3493, allocations: 0.5312 MB / 428.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003458/0.3527, allocations: 0.8744 MB / 429.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002102/0.3548, allocations: 1.383 MB / 430.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004056/0.3589, allocations: 1.847 MB / 432.6 MB, free: 28 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.3696, allocations: 7.381 MB / 440 MB, free: 8.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.3696, allocations: 0 / 440 MB, free: 8.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3696, allocations: 0 / 440 MB, free: 8.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002195/0.3698, allocations: 4 kB / 440 MB, free: 8.621 MB / 350.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.01597/0.3858, allocations: 5.01 MB / 445 MB, free: 3.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3858, allocations: 11.98 kB / 445 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005189/0.391, allocations: 0.9037 MB / 445.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0067/0.3977, allocations: 2.561 MB / 448.5 MB, free: 0 / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/0.398, allocations: 250.7 kB / 448.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/0.3992, allocations: 339.9 kB / 449.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.4103, allocations: 4.69 MB / 453.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/0.4104, allocations: 3.938 kB / 453.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005466/0.4109, allocations: 140 kB / 453.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002067/0.4112, allocations: 154.7 kB / 454 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008406/0.4196, allocations: 3.895 MB / 457.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02721/0.4468, allocations: 12.11 MB / 470.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007012/0.4538, allocations: 2.952 MB / 473 MB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003373/0.4572, allocations: 1.567 MB / 474.6 MB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008388/0.4655, allocations: 3.575 MB / 478.1 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.624e-05/0.4656, allocations: 51.86 kB / 478.2 MB, free: 2.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.99e-06/0.4656, allocations: 0 / 478.2 MB, free: 2.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01868/0.4843, allocations: 7.458 MB / 485.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.4844, allocations: 69.41 kB / 485.7 MB, free: 10.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004487/0.4888, allocations: 2.426 MB / 488.2 MB, free: 7.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002539/0.4891, allocations: 57.7 kB / 488.2 MB, free: 7.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.4905, allocations: 1.661 MB / 489.9 MB, free: 6.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007001/0.4912, allocations: 0.6584 MB / 490.5 MB, free: 5.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006042/0.4918, allocations: 339.5 kB / 490.9 MB, free: 5.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.492, allocations: 305.1 kB / 491.2 MB, free: 4.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.4937, allocations: 0.9058 MB / 492.1 MB, free: 4.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.4958, allocations: 1.331 MB / 493.4 MB, free: 2.535 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004092/0.4999, allocations: 2.352 MB / 495.7 MB, free: 40 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.4999, allocations: 4 kB / 495.7 MB, free: 36 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006315/0.5063, allocations: 3.035 MB / 498.8 MB, free: 12.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.5063, allocations: 16.06 kB / 498.8 MB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/0.5063, allocations: 8 kB / 498.8 MB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.5081, allocations: 0.5594 MB / 499.4 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.51, allocations: 435.4 kB / 499.8 MB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.5213, allocations: 7.178 MB / 0.4951 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.5232, allocations: 96.06 kB / 0.4952 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003274/0.5236, allocations: 75.98 kB / 0.4953 GB, free: 4.418 MB / 414.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.00265/0.5262, allocations: 1.161 MB / 0.4964 GB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008584/0.5271, allocations: 250.4 kB / 0.4966 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006498/0.5336, allocations: 2.849 MB / 0.4994 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/0.5336, allocations: 23.94 kB / 0.4994 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.547e-05/0.5336, allocations: 8 kB / 0.4994 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.5336, allocations: 7.969 kB / 0.4994 GB, free: 92 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.5461, allocations: 5.472 MB / 0.5048 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/0.5461, allocations: 0 / 0.5048 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.5475, allocations: 283.7 kB / 0.5051 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/0.5492, allocations: 0.616 MB / 0.5057 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.5494, allocations: 43.98 kB / 0.5057 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/0.564, allocations: 10.8 MB / 0.5162 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/0.564, allocations: 7.969 kB / 0.5163 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009201/0.5733, allocations: 4.129 MB / 0.5203 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.575, allocations: 466.2 kB / 0.5207 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007074/0.5757, allocations: 40 kB / 0.5208 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.5773, allocations: 83.92 kB / 0.5208 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004566/0.5777, allocations: 145.7 kB / 0.521 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/0.5779, allocations: 63.97 kB / 0.521 GB, free: 9.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003636/0.5816, allocations: 1.682 MB / 0.5227 GB, free: 7.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5816, allocations: 0 / 0.5227 GB, free: 7.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003442/0.585, allocations: 0.6913 MB / 0.5234 GB, free: 7.039 MB / 446.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.001996/0.587, allocations: 460.8 kB / 0.5238 GB, free: 6.574 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006386/0.5934, allocations: 2.739 MB / 0.5265 GB, free: 3.809 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.5934, allocations: 4 kB / 0.5265 GB, free: 3.805 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003744/0.5971, allocations: 1.85 MB / 0.5283 GB, free: 1.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/0.6004, allocations: 0.491 MB / 0.5288 GB, free: 1.414 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.6161, allocations: 7.159 MB / 0.5358 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002657/0.6188, allocations: 2.017 MB / 0.5377 GB, free: 8.152 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000873/0.6197, allocations: 175.4 kB / 0.5379 GB, free: 7.98 MB / 462.1 MB Notification: Performance of SimCode: time 1.362e-06/0.6197, allocations: 0 / 0.5379 GB, free: 7.98 MB / 462.1 MB Notification: Performance of Templates: time 0.3073/0.927, allocations: 100.4 MB / 0.6359 GB, free: 84.44 MB / 478.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/jenkins1/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/jenkins1/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: 16.431581648997962]