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.001024/0.001024, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001162/0.001162, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.9044/0.9044, allocations: 158.6 MB / 187.5 MB, free: 2.945 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.883e-06/1.883e-06, allocations: 0 / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.715e-05/2.903e-05, allocations: 2.312 kB / 251.1 MB, free: 7.793 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.03035/0.03037, allocations: 12.63 MB / 263.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008684/0.03906, allocations: 4.214 MB / 268 MB, free: 6.867 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.04119, allocations: 83.44 kB / 268.1 MB, free: 6.785 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.0441, allocations: 0.967 MB / 269 MB, free: 5.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003354/0.04745, allocations: 1.316 MB / 270.3 MB, free: 4.488 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.04892, allocations: 0.8646 MB / 271.2 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00416/0.05308, allocations: 4.229 MB / 275.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001893/0.05497, allocations: 1.69 MB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.05831, allocations: 2.838 MB / 280 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002096/0.06041, allocations: 1.984 MB / 281.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004565/0.06087, allocations: 0.5078 MB / 282.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009745/0.06184, allocations: 0.7026 MB / 283.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006653/0.06251, allocations: 1.184 MB / 284.3 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.06367, allocations: 1.454 MB / 285.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.06686, allocations: 3.454 MB / 289.2 MB, free: 1.461 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.06686, allocations: 8 kB / 289.3 MB, free: 1.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.06686, allocations: 3.984 kB / 289.3 MB, free: 1.449 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.941e-05/0.06691, allocations: 0 / 289.3 MB, free: 1.449 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.006117/0.07303, allocations: 4.636 MB / 293.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.07307, allocations: 11.98 kB / 293.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002981/0.07605, allocations: 1.24 MB / 295.1 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002555/0.07861, allocations: 2.126 MB / 297.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.07873, allocations: 234.6 kB / 297.5 MB, free: 9.082 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.07903, allocations: 316.3 kB / 297.8 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003595/0.08263, allocations: 2.531 MB / 300.3 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.708e-05/0.08268, allocations: 11.94 kB / 300.4 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.08287, allocations: 128 kB / 300.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.08298, allocations: 146.2 kB / 300.6 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002362/0.08534, allocations: 1.18 MB / 301.8 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/0.09727, allocations: 10.6 MB / 312.4 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002783/0.1001, allocations: 1.951 MB / 314.3 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.1012, allocations: 0.7417 MB / 315.1 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003268/0.1045, allocations: 2.292 MB / 317.4 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1045, allocations: 50.33 kB / 317.4 MB, free: 4.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 2.966e-06/0.1045, allocations: 4 kB / 317.4 MB, free: 4.781 MB / 298.7 MB Notification: Performance of matching and sorting (n=144): time 0.007096/0.1116, allocations: 4.015 MB / 321.5 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.1116, allocations: 64.72 kB / 321.5 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.1131, allocations: 1.428 MB / 322.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.843e-05/0.1132, allocations: 49.7 kB / 323 MB, free: 15.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007416/0.1139, allocations: 1.567 MB / 324.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004371/0.1144, allocations: 0.5308 MB / 325.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/0.1147, allocations: 325.1 kB / 325.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.1148, allocations: 480.8 kB / 325.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004767/0.1153, allocations: 263.8 kB / 326.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007835/0.1161, allocations: 0.939 MB / 327.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.1175, allocations: 1.318 MB / 328.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.1175, allocations: 4 kB / 328.4 MB, free: 9.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002318/0.1198, allocations: 1.612 MB / 330 MB, free: 7.531 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.1199, allocations: 12 kB / 330 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.1199, allocations: 16 kB / 330 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.1209, allocations: 434.5 kB / 330.5 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008178/0.1217, allocations: 387.3 kB / 330.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/0.1266, allocations: 5.8 MB / 336.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.1276, allocations: 75.91 kB / 336.7 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.1277, allocations: 72 kB / 336.8 MB, free: 0.5039 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.000956/0.1287, allocations: 252.1 kB / 337 MB, free: 252 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.129, allocations: 234.8 kB / 337.3 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.1315, allocations: 1.381 MB / 338.6 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.1315, allocations: 16 kB / 338.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.1315, allocations: 4 kB / 338.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.1315, allocations: 7.969 kB / 338.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005593/0.1371, allocations: 3.716 MB / 342.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1371, allocations: 4 kB / 342.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005484/0.1377, allocations: 211.7 kB / 342.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009177/0.1386, allocations: 423.7 kB / 343 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.841e-05/0.1387, allocations: 39.98 kB / 343 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1171/0.2558, allocations: 11.55 MB / 354.6 MB, free: 96.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2558, allocations: 2.25 kB / 354.6 MB, free: 96.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/0.2586, allocations: 1.855 MB / 356.5 MB, free: 95.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005727/0.2592, allocations: 355.3 kB / 356.8 MB, free: 95.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.2593, allocations: 32.12 kB / 356.8 MB, free: 95.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.2598, allocations: 62.2 kB / 356.9 MB, free: 95.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.26, allocations: 117.7 kB / 357 MB, free: 95.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.26, allocations: 42.28 kB / 357 MB, free: 95.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008534/0.2609, allocations: 0.8269 MB / 357.9 MB, free: 95.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2609, allocations: 0 / 357.9 MB, free: 95.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001303/0.2622, allocations: 0.5851 MB / 358.5 MB, free: 95.71 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.0002539/0.2624, allocations: 156.8 kB / 358.6 MB, free: 95.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.2644, allocations: 1.624 MB / 360.2 MB, free: 95.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2644, allocations: 3.875 kB / 360.2 MB, free: 95.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.2655, allocations: 1.562 MB / 361.8 MB, free: 94.24 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.2665, allocations: 445.1 kB / 362.2 MB, free: 94.22 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006139/0.2727, allocations: 5.148 MB / 367.4 MB, free: 91.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000626/0.2733, allocations: 0.8208 MB / 368.2 MB, free: 91.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006935/0.274, allocations: 332.8 kB / 368.5 MB, free: 90.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.2742, allocations: 123.7 kB / 368.7 MB, free: 90.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.964e-06/0.2742, allocations: 0 / 368.7 MB, free: 90.88 MB / 330.7 MB Notification: Performance of Templates: time 0.03074/0.305, allocations: 28.69 MB / 397.3 MB, free: 63.15 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.7692459891550243]