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.001375/0.001375, allocations: 80.92 kB / 22.29 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.001033/0.001033, allocations: 162.7 kB / 25.7 MB, free: 8.406 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.042/1.042, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.573e-06/1.573e-06, allocations: 0 / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.285e-05/3.443e-05, allocations: 10.25 kB / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01076/0.0108, allocations: 12.33 MB / 263.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008014/0.01881, allocations: 4.372 MB / 268.2 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.0199, allocations: 83.44 kB / 268.3 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.0216, allocations: 0.9861 MB / 269.3 MB, free: 5.406 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.02379, allocations: 1.324 MB / 270.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.02504, allocations: 0.865 MB / 271.5 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003564/0.02861, allocations: 4.233 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.03052, allocations: 1.741 MB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003131/0.03365, allocations: 2.94 MB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002736/0.03638, allocations: 1.968 MB / 282.4 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005043/0.03689, allocations: 0.5078 MB / 282.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008927/0.03778, allocations: 0.691 MB / 283.6 MB, free: 7.004 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006492/0.03843, allocations: 1.184 MB / 284.8 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.03957, allocations: 1.442 MB / 286.2 MB, free: 4.371 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003479/0.04305, allocations: 3.435 MB / 289.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.04306, allocations: 0 / 289.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.04306, allocations: 0 / 289.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.169e-05/0.04309, allocations: 4 kB / 289.6 MB, free: 0.9219 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.005187/0.04828, allocations: 4.226 MB / 293.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.04832, allocations: 11.98 kB / 293.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002416/0.05073, allocations: 1.109 MB / 295 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.05281, allocations: 1.362 MB / 296.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.05293, allocations: 230.6 kB / 296.6 MB, free: 9.871 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.05324, allocations: 320.3 kB / 296.9 MB, free: 9.559 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.05574, allocations: 2.379 MB / 299.3 MB, free: 7.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.244e-05/0.05579, allocations: 11.89 kB / 299.3 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001943/0.05598, allocations: 124 kB / 299.4 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.05609, allocations: 146.2 kB / 299.5 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.05746, allocations: 0.9182 MB / 300.5 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009025/0.06649, allocations: 8.252 MB / 308.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00219/0.06868, allocations: 1.626 MB / 310.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006984/0.06938, allocations: 0.6013 MB / 310.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002419/0.07179, allocations: 1.776 MB / 312.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.07183, allocations: 43.56 kB / 312.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 2.705e-06/0.07183, allocations: 0 / 312.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=144): time 0.005211/0.07704, allocations: 3.311 MB / 316.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.07708, allocations: 72.66 kB / 316.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009814/0.07806, allocations: 1.151 MB / 317.3 MB, free: 4.621 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.381e-05/0.07812, allocations: 49.7 kB / 317.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005309/0.07865, allocations: 1.249 MB / 318.6 MB, free: 3.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.07893, allocations: 0.5151 MB / 319.1 MB, free: 2.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.07922, allocations: 291.3 kB / 319.4 MB, free: 2.496 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.364e-05/0.07929, allocations: 305.1 kB / 319.7 MB, free: 2.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/0.07957, allocations: 206.7 kB / 319.9 MB, free: 1.992 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.08003, allocations: 0.6635 MB / 320.6 MB, free: 1.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008405/0.08087, allocations: 1.019 MB / 321.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.08088, allocations: 4 kB / 321.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001381/0.08226, allocations: 1.198 MB / 322.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.08228, allocations: 8 kB / 322.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.0823, allocations: 16 kB / 322.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008006/0.0831, allocations: 404 kB / 323.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008277/0.08393, allocations: 367.4 kB / 323.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003389/0.08732, allocations: 4.298 MB / 327.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/0.08777, allocations: 59.95 kB / 327.9 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.127e-05/0.08785, allocations: 55.98 kB / 328 MB, free: 9.312 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.0004919/0.08834, allocations: 216.3 kB / 328.2 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.08851, allocations: 151.8 kB / 328.3 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.08982, allocations: 1.066 MB / 329.4 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.08983, allocations: 12 kB / 329.4 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.08983, allocations: 12 kB / 329.4 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.08984, allocations: 7.969 kB / 329.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.09275, allocations: 2.336 MB / 331.8 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.09275, allocations: 4 kB / 331.8 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004573/0.09321, allocations: 196 kB / 332 MB, free: 5.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006779/0.09389, allocations: 389.3 kB / 332.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.09395, allocations: 31.98 kB / 332.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004538/0.09848, allocations: 8.351 MB / 340.7 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.09849, allocations: 3.969 kB / 340.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.1, allocations: 1.424 MB / 342.1 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.1004, allocations: 190.8 kB / 342.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1005, allocations: 39.98 kB / 342.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.1008, allocations: 43.98 kB / 342.4 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.101, allocations: 121 kB / 342.5 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.54e-05/0.101, allocations: 27.98 kB / 342.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004507/0.1015, allocations: 0.567 MB / 343.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-08/0.1015, allocations: 0 / 343.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001197/0.1027, allocations: 0.582 MB / 343.7 MB, free: 8.91 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.000242/0.1029, allocations: 140.1 kB / 343.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.1043, allocations: 1.304 MB / 345.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.418e-05/0.1043, allocations: 21.81 kB / 345.2 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009099/0.1052, allocations: 1.188 MB / 346.4 MB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009423/0.1062, allocations: 438.4 kB / 346.8 MB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005432/0.1116, allocations: 4.897 MB / 351.7 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.1122, allocations: 0.666 MB / 352.3 MB, free: 76 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.1117/0.2239, allocations: 234.4 kB / 352.6 MB, free: 82.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008934/0.2248, allocations: 428.8 kB / 353 MB, free: 82.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.093e-06/0.2248, allocations: 0.5625 kB / 353 MB, free: 82.71 MB / 330.7 MB Notification: Performance of Templates: time 0.03255/0.2574, allocations: 30.22 MB / 383.2 MB, free: 64.54 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 -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.9997877217829227]