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.00135/0.00135, allocations: 120.2 kB / 21.94 MB, free: 8 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.001534/0.001534, allocations: 204.7 kB / 25.23 MB, free: 3.551 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.421/1.421, allocations: 207.6 MB / 236 MB, free: 9.977 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.001924/0.001924, allocations: 59.92 kB / 348.5 MB, free: 9.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2537, allocations: 49.16 MB / 397.6 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01435/0.268, allocations: 13.7 MB / 411.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.28, allocations: 4.895 MB / 416.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003654/0.2837, allocations: 96.03 kB / 416.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004201/0.2879, allocations: 1.082 MB / 417.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005974/0.2938, allocations: 1.416 MB / 418.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003348/0.2972, allocations: 1.009 MB / 419.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007677/0.3049, allocations: 4.345 MB / 424.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.3085, allocations: 1.824 MB / 426 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004617/0.3131, allocations: 2.049 MB / 428.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005486/0.3186, allocations: 2.309 MB / 430.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002042/0.3206, allocations: 0.5352 MB / 430.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004052/0.3247, allocations: 0.9914 MB / 431.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002565/0.3272, allocations: 1.379 MB / 433.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005493/0.3327, allocations: 2.345 MB / 435.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.3453, allocations: 7.375 MB / 443 MB, free: 5.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3453, allocations: 0 / 443 MB, free: 5.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3453, allocations: 0 / 443 MB, free: 5.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002328/0.3455, allocations: 4 kB / 443 MB, free: 5.789 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.01445/0.36, allocations: 5.018 MB / 448 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.36, allocations: 11.98 kB / 448 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00455/0.3646, allocations: 0.8999 MB / 448.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006282/0.3709, allocations: 2.58 MB / 451.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.3712, allocations: 250.6 kB / 451.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/0.3723, allocations: 343.9 kB / 452.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.3834, allocations: 4.543 MB / 456.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.433e-05/0.3835, allocations: 3.938 kB / 456.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.3839, allocations: 136 kB / 456.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/0.3841, allocations: 158.6 kB / 456.9 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008323/0.3924, allocations: 3.911 MB / 460.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02652/0.4189, allocations: 13.86 MB / 474.7 MB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006449/0.4254, allocations: 2.959 MB / 477.7 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003067/0.4284, allocations: 1.583 MB / 479.2 MB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008261/0.4367, allocations: 3.996 MB / 483.2 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.4368, allocations: 55.81 kB / 483.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=165): time 4.709e-06/0.4368, allocations: 0 / 483.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.01815/0.4549, allocations: 7.466 MB / 490.8 MB, free: 5.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.455, allocations: 73.41 kB / 490.8 MB, free: 5.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004195/0.4592, allocations: 2.624 MB / 493.4 MB, free: 2.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.4595, allocations: 61.7 kB / 493.5 MB, free: 2.805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.4609, allocations: 1.654 MB / 495.2 MB, free: 1.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007403/0.4616, allocations: 0.6584 MB / 495.8 MB, free: 480 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005519/0.4622, allocations: 331.5 kB / 496.1 MB, free: 144 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4624, allocations: 313 kB / 496.4 MB, free: 15.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/0.464, allocations: 0.9097 MB / 497.4 MB, free: 14.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.466, allocations: 1.298 MB / 498.7 MB, free: 13.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003862/0.4698, allocations: 2.359 MB / 0.4893 GB, free: 10.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/0.4699, allocations: 4 kB / 0.4893 GB, free: 10.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006257/0.4761, allocations: 3.062 MB / 0.4923 GB, free: 7.887 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.532e-05/0.4762, allocations: 8 kB / 0.4923 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.4762, allocations: 12 kB / 0.4923 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.4778, allocations: 0.5558 MB / 0.4928 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/0.4796, allocations: 435.3 kB / 0.4932 GB, free: 6.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.4898, allocations: 7.372 MB / 0.5004 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.4916, allocations: 83.89 kB / 0.5005 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/0.4918, allocations: 76.06 kB / 0.5006 GB, free: 15.12 MB / 430.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.002072/0.4939, allocations: 1.165 MB / 0.5017 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005431/0.4944, allocations: 270.2 kB / 0.502 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00553/0.4999, allocations: 2.858 MB / 0.5048 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-05/0.5, allocations: 24 kB / 0.5048 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.5, allocations: 8.062 kB / 0.5048 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/0.5, allocations: 15.95 kB / 0.5048 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.5118, allocations: 6.296 MB / 0.511 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.5118, allocations: 128 / 0.511 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.5132, allocations: 279.6 kB / 0.5112 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/0.5148, allocations: 0.6199 MB / 0.5118 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.515, allocations: 43.97 kB / 0.5119 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.5285, allocations: 11.01 MB / 0.5226 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5285, allocations: 4.031 kB / 0.5226 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007731/0.5362, allocations: 4.157 MB / 0.5267 GB, free: 3.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.5376, allocations: 486.1 kB / 0.5272 GB, free: 3.277 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/0.538, allocations: 39.94 kB / 0.5272 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.539, allocations: 87.92 kB / 0.5273 GB, free: 3.152 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.5394, allocations: 145.7 kB / 0.5274 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.5395, allocations: 51.98 kB / 0.5275 GB, free: 2.961 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002654/0.5422, allocations: 1.842 MB / 0.5293 GB, free: 1.105 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5422, allocations: 0 / 0.5293 GB, free: 1.105 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002237/0.5444, allocations: 0.6952 MB / 0.53 GB, free: 420 kB / 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.001593/0.546, allocations: 437.4 kB / 0.5304 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005202/0.5512, allocations: 2.74 MB / 0.533 GB, free: 13.19 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5512, allocations: 4.188 kB / 0.5331 GB, free: 13.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00319/0.5544, allocations: 1.844 MB / 0.5349 GB, free: 11.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/0.5569, allocations: 0.5891 MB / 0.5354 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.5697, allocations: 7.21 MB / 0.5425 GB, free: 3.441 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/0.5724, allocations: 2.574 MB / 0.545 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/0.5732, allocations: 179.4 kB / 0.5452 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5732, allocations: 0 / 0.5452 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of Templates: time 0.3092/0.8824, allocations: 100.8 MB / 0.6436 GB, free: 79.19 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.26160780596547]