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.001229/0.001229, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001187/0.001187, allocations: 166.9 kB / 25.33 MB, free: 8.586 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.9039/0.9039, allocations: 158.6 MB / 187.2 MB, free: 2.93 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 2.445e-06/2.445e-06, allocations: 0 / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.249e-05/3.494e-05, allocations: 6.25 kB / 251.1 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01075/0.01078, allocations: 12.7 MB / 263.8 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007426/0.01821, allocations: 4.225 MB / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.02016, allocations: 87.44 kB / 268.1 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002204/0.02237, allocations: 0.9553 MB / 269 MB, free: 5.438 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003262/0.02563, allocations: 1.328 MB / 270.4 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.02717, allocations: 0.8569 MB / 271.2 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004113/0.03128, allocations: 4.225 MB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.0332, allocations: 1.694 MB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003905/0.03711, allocations: 2.842 MB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003045/0.04015, allocations: 1.984 MB / 282 MB, free: 8.395 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008939/0.04104, allocations: 0.5078 MB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.0427, allocations: 0.6988 MB / 283.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008445/0.04355, allocations: 1.192 MB / 284.4 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.04533, allocations: 1.458 MB / 285.8 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004147/0.04948, allocations: 3.458 MB / 289.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.04948, allocations: 0 / 289.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.04948, allocations: 0 / 289.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.728e-05/0.04956, allocations: 0 / 289.3 MB, free: 1.062 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.006545/0.0561, allocations: 4.647 MB / 293.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.05615, allocations: 11.98 kB / 293.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.05879, allocations: 1.232 MB / 295.2 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002691/0.06148, allocations: 2.134 MB / 297.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.06161, allocations: 234.6 kB / 297.5 MB, free: 8.684 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/0.06193, allocations: 320.3 kB / 297.8 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003687/0.06562, allocations: 2.527 MB / 300.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.165e-05/0.06567, allocations: 7.891 kB / 300.4 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.06586, allocations: 128 kB / 300.5 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.06597, allocations: 146.2 kB / 300.7 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002376/0.06835, allocations: 1.18 MB / 301.8 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01289/0.08124, allocations: 10.59 MB / 312.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.08396, allocations: 1.951 MB / 314.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.08512, allocations: 0.7456 MB / 315.1 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003631/0.08875, allocations: 2.296 MB / 317.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.08879, allocations: 46.39 kB / 317.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 3.096e-06/0.08879, allocations: 0 / 317.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=144): time 0.007609/0.0964, allocations: 4.007 MB / 321.5 MB, free: 332 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.09644, allocations: 72.66 kB / 321.5 MB, free: 248 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.09811, allocations: 1.428 MB / 323 MB, free: 14.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-05/0.0982, allocations: 49.7 kB / 323 MB, free: 14.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007908/0.09899, allocations: 1.567 MB / 324.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/0.09932, allocations: 0.523 MB / 325.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.09967, allocations: 329.1 kB / 325.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.09978, allocations: 476.8 kB / 325.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.1002, allocations: 267.7 kB / 326.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008282/0.1011, allocations: 0.9469 MB / 327.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.1025, allocations: 1.303 MB / 328.4 MB, free: 8.789 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.1025, allocations: 4 kB / 328.4 MB, free: 8.785 MB / 314.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002474/0.1049, allocations: 1.615 MB / 330 MB, free: 7.152 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.105, allocations: 11.98 kB / 330 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.105, allocations: 16 kB / 330.1 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.106, allocations: 442.8 kB / 330.5 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008565/0.1069, allocations: 387.4 kB / 330.9 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005343/0.1122, allocations: 5.796 MB / 336.7 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.1133, allocations: 71.92 kB / 336.7 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.425e-05/0.1134, allocations: 75.98 kB / 336.8 MB, free: 124 kB / 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.0008387/0.1142, allocations: 260.2 kB / 337.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.1145, allocations: 234.8 kB / 337.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.1165, allocations: 1.381 MB / 338.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.1165, allocations: 12 kB / 338.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.1166, allocations: 8 kB / 338.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.1166, allocations: 3.984 kB / 338.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00543/0.122, allocations: 3.716 MB / 342.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.122, allocations: 8.125 kB / 342.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005583/0.1226, allocations: 211.7 kB / 342.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008739/0.1234, allocations: 423.4 kB / 343 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.125e-05/0.1235, allocations: 39.92 kB / 343.1 MB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1436/0.2671, allocations: 11.54 MB / 354.6 MB, free: 78.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.2671, allocations: 10.83 kB / 354.6 MB, free: 78.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.27, allocations: 1.852 MB / 356.5 MB, free: 78.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005618/0.2705, allocations: 354 kB / 356.8 MB, free: 78.03 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.2707, allocations: 32.25 kB / 356.9 MB, free: 78.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004389/0.2711, allocations: 63.77 kB / 356.9 MB, free: 78.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.2713, allocations: 127.1 kB / 357 MB, free: 78.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.2714, allocations: 39.62 kB / 357.1 MB, free: 78.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008742/0.2722, allocations: 0.8206 MB / 357.9 MB, free: 77.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2722, allocations: 0 / 357.9 MB, free: 77.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00161/0.2738, allocations: 0.5797 MB / 358.5 MB, free: 77.87 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.0002684/0.2741, allocations: 154.5 kB / 358.6 MB, free: 77.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.2762, allocations: 1.62 MB / 360.3 MB, free: 77.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2762, allocations: 3.5 kB / 360.3 MB, free: 77.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.2773, allocations: 1.566 MB / 361.8 MB, free: 76.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.2784, allocations: 446.7 kB / 362.3 MB, free: 76.44 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.2846, allocations: 5.157 MB / 367.4 MB, free: 74.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.2852, allocations: 0.8189 MB / 368.2 MB, free: 74.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000651/0.2858, allocations: 336 kB / 368.6 MB, free: 74.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.2861, allocations: 124.3 kB / 368.7 MB, free: 74.13 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2861, allocations: 0 / 368.7 MB, free: 74.13 MB / 330.7 MB Notification: Performance of Templates: time 0.02947/0.3155, allocations: 28.7 MB / 397.4 MB, free: 50.1 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.9579421197995543]