Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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.001431/0.001431, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001537/0.001537, allocations: 165.5 kB / 25.69 MB, free: 8.402 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.9464/0.9464, allocations: 158.6 MB / 187.6 MB, free: 2.773 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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 251.6 MB, free: 7.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.307e-05, allocations: 2.312 kB / 251.6 MB, free: 7.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.0113/0.01132, allocations: 12.38 MB / 264 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.01899, allocations: 4.368 MB / 268.3 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.02092, allocations: 79.5 kB / 268.4 MB, free: 6.293 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.02316, allocations: 0.99 MB / 269.4 MB, free: 5.297 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003919/0.02708, allocations: 1.324 MB / 270.7 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.02895, allocations: 0.8493 MB / 271.6 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004941/0.03389, allocations: 4.24 MB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.03633, allocations: 1.737 MB / 277.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004588/0.04091, allocations: 2.94 MB / 280.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.04404, allocations: 1.976 MB / 282.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.04505, allocations: 0.5 MB / 283 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.0467, allocations: 0.7066 MB / 283.7 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009141/0.04762, allocations: 1.176 MB / 284.9 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.04929, allocations: 1.446 MB / 286.3 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003897/0.05318, allocations: 3.443 MB / 289.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.05319, allocations: 3.984 kB / 289.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.05319, allocations: 0 / 289.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.911e-05/0.05327, allocations: 0 / 289.7 MB, free: 0.8086 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.005597/0.05886, allocations: 4.219 MB / 294 MB, free: 12.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.0589, allocations: 15.98 kB / 294 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002734/0.06164, allocations: 1.109 MB / 295.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.06374, allocations: 1.358 MB / 296.4 MB, free: 9.992 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003652/0.06411, allocations: 230.6 kB / 296.7 MB, free: 9.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003164/0.06442, allocations: 320.3 kB / 297 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002664/0.06709, allocations: 2.379 MB / 299.4 MB, free: 6.984 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.244e-05/0.06714, allocations: 7.891 kB / 299.4 MB, free: 6.977 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.06732, allocations: 128 kB / 299.5 MB, free: 6.852 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-05/0.06742, allocations: 146.2 kB / 299.6 MB, free: 6.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.0689, allocations: 0.9221 MB / 300.6 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/0.07919, allocations: 8.249 MB / 308.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.08118, allocations: 1.626 MB / 310.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.08222, allocations: 0.6013 MB / 311 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002971/0.08519, allocations: 1.776 MB / 312.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.08522, allocations: 47.56 kB / 312.9 MB, free: 9.105 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 2.585e-06/0.08522, allocations: 0 / 312.9 MB, free: 9.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=144): time 0.005921/0.09114, allocations: 3.319 MB / 316.2 MB, free: 5.746 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.09118, allocations: 68.66 kB / 316.2 MB, free: 5.668 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009936/0.09217, allocations: 1.151 MB / 317.4 MB, free: 4.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.09224, allocations: 49.7 kB / 317.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007671/0.093, allocations: 1.253 MB / 318.7 MB, free: 3.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.09327, allocations: 0.5072 MB / 319.2 MB, free: 2.676 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.09356, allocations: 299.3 kB / 319.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.09362, allocations: 301.1 kB / 319.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.0939, allocations: 198.8 kB / 320 MB, free: 1.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.09436, allocations: 0.6674 MB / 320.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000869/0.09522, allocations: 1.015 MB / 321.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.936e-06/0.09523, allocations: 4 kB / 321.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001557/0.09679, allocations: 1.195 MB / 322.9 MB, free: 14.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.09681, allocations: 12 kB / 322.9 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.09683, allocations: 12 kB / 322.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008246/0.09765, allocations: 408 kB / 323.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008987/0.09855, allocations: 431.3 kB / 323.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.1023, allocations: 4.318 MB / 328 MB, free: 9.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006907/0.1029, allocations: 59.95 kB / 328.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.636e-05/0.103, allocations: 59.98 kB / 328.1 MB, free: 9.125 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * 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,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005822/0.1036, allocations: 216.3 kB / 328.4 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.1038, allocations: 159.7 kB / 328.5 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.1052, allocations: 1.062 MB / 329.6 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1052, allocations: 16 kB / 329.6 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1052, allocations: 11.94 kB / 329.6 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.1052, allocations: 7.969 kB / 329.6 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.1086, allocations: 2.32 MB / 331.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1086, allocations: 0 / 331.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007052/0.1093, allocations: 235.9 kB / 332.2 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000724/0.11, allocations: 389.1 kB / 332.5 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.1101, allocations: 31.98 kB / 332.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00519/0.1153, allocations: 8.377 MB / 340.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.1153, allocations: 7.984 kB / 341 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.1172, allocations: 1.412 MB / 342.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005048/0.1177, allocations: 198.8 kB / 342.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.1178, allocations: 35.94 kB / 342.6 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.1182, allocations: 55.97 kB / 342.6 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.1184, allocations: 109 kB / 342.8 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/0.1185, allocations: 28 kB / 342.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006034/0.1191, allocations: 0.5709 MB / 343.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1191, allocations: 0 / 343.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001531/0.1206, allocations: 0.5742 MB / 343.9 MB, free: 8.676 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002444/0.1209, allocations: 152.1 kB / 344.1 MB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.1225, allocations: 1.3 MB / 345.4 MB, free: 7.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.053e-05/0.1225, allocations: 22.25 kB / 345.4 MB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.1239, allocations: 1.191 MB / 346.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.1249, allocations: 439 kB / 347 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/0.1315, allocations: 4.892 MB / 351.9 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1086/0.24, allocations: 0.657 MB / 352.6 MB, free: 82.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001073/0.2411, allocations: 238.9 kB / 352.8 MB, free: 82.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/0.2424, allocations: 441.3 kB / 353.2 MB, free: 82.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.754e-06/0.2424, allocations: 1.094 kB / 353.2 MB, free: 82.36 MB / 330.7 MB Notification: Performance of Templates: time 0.0375/0.2799, allocations: 30.58 MB / 383.8 MB, free: 63.8 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","",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_Initialize_res.mat. Warning: Get data of variable aimc.stator.zeroInductor.i0 from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.646827145013958]