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.001298/0.001298, allocations: 79.73 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.000933/0.000933, allocations: 168 kB / 25.33 MB, free: 9.445 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.8459/0.8459, allocations: 158.6 MB / 187.2 MB, free: 2.555 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.243e-06/1.243e-06, allocations: 0 / 251.1 MB, free: 3.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.538e-05/1.662e-05, allocations: 2.312 kB / 251.1 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01009/0.01011, allocations: 12.7 MB / 263.8 MB, free: 6.816 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006509/0.01662, allocations: 4.225 MB / 268 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.01773, allocations: 87.44 kB / 268.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.01958, allocations: 0.9705 MB / 269.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002457/0.02204, allocations: 1.316 MB / 270.4 MB, free: 196 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.02328, allocations: 0.864 MB / 271.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003821/0.0271, allocations: 4.229 MB / 275.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.02888, allocations: 1.69 MB / 277.1 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.03194, allocations: 2.94 MB / 280.1 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002278/0.03421, allocations: 1.964 MB / 282.1 MB, free: 4.406 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004731/0.03469, allocations: 0.5039 MB / 282.6 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008705/0.03556, allocations: 0.6949 MB / 283.3 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006346/0.03619, allocations: 1.172 MB / 284.4 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.0373, allocations: 1.446 MB / 285.9 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.04018, allocations: 3.435 MB / 289.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.04018, allocations: 4 kB / 289.3 MB, free: 13.13 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.04019, allocations: 0 / 289.3 MB, free: 13.13 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.04022, allocations: 0 / 289.3 MB, free: 13.13 MB / 282.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.008012/0.04823, allocations: 4.612 MB / 293.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.04828, allocations: 15.92 kB / 293.9 MB, free: 8.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002971/0.05125, allocations: 1.247 MB / 295.2 MB, free: 7.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.05421, allocations: 2.134 MB / 297.3 MB, free: 5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.05434, allocations: 234.6 kB / 297.5 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/0.05475, allocations: 316.3 kB / 297.9 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004306/0.05906, allocations: 2.531 MB / 300.4 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.506e-05/0.05912, allocations: 3.938 kB / 300.4 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.05933, allocations: 132 kB / 300.5 MB, free: 1.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.05944, allocations: 142.2 kB / 300.7 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.06196, allocations: 1.176 MB / 301.8 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1242/0.1861, allocations: 10.56 MB / 312.4 MB, free: 36.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/0.1889, allocations: 1.955 MB / 314.3 MB, free: 36.36 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.19, allocations: 0.7406 MB / 315.1 MB, free: 36.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002983/0.193, allocations: 2.27 MB / 317.4 MB, free: 34.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.1931, allocations: 48.92 kB / 317.4 MB, free: 34.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=124): time 2.645e-06/0.1931, allocations: 0 / 317.4 MB, free: 34.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=144): time 0.006224/0.1993, allocations: 4.022 MB / 321.4 MB, free: 33.4 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.1993, allocations: 65.91 kB / 321.5 MB, free: 33.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.2007, allocations: 1.429 MB / 322.9 MB, free: 32.74 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.345e-05/0.2007, allocations: 52.45 kB / 323 MB, free: 32.69 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006539/0.2014, allocations: 1.566 MB / 324.5 MB, free: 31.49 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.2016, allocations: 0.5274 MB / 325.1 MB, free: 31.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.2019, allocations: 322.6 kB / 325.4 MB, free: 30.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.303e-05/0.202, allocations: 484.2 kB / 325.9 MB, free: 30.44 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.2024, allocations: 258.4 kB / 326.1 MB, free: 30.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.203, allocations: 0.9444 MB / 327.1 MB, free: 29.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.2041, allocations: 1.309 MB / 328.4 MB, free: 28.54 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.2042, allocations: 3.938 kB / 328.4 MB, free: 28.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002029/0.2062, allocations: 1.615 MB / 330 MB, free: 28.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.2062, allocations: 9.016 kB / 330 MB, free: 28.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.2062, allocations: 14.47 kB / 330 MB, free: 28.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009691/0.2072, allocations: 447.5 kB / 330.4 MB, free: 27.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008558/0.2081, allocations: 386.3 kB / 330.8 MB, free: 27.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003952/0.212, allocations: 5.787 MB / 336.6 MB, free: 21.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008798/0.2129, allocations: 67.97 kB / 336.7 MB, free: 21.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.8e-05/0.213, allocations: 71.98 kB / 336.7 MB, free: 21.77 MB / 282.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.0008037/0.2138, allocations: 257.3 kB / 337 MB, free: 21.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.2141, allocations: 230.8 kB / 337.2 MB, free: 21.3 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.2159, allocations: 1.376 MB / 338.6 MB, free: 19.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.2159, allocations: 16 kB / 338.6 MB, free: 19.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.2159, allocations: 11.84 kB / 338.6 MB, free: 19.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.2159, allocations: 7.969 kB / 338.6 MB, free: 19.88 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005049/0.2209, allocations: 3.714 MB / 342.3 MB, free: 16.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2209, allocations: 4 kB / 342.3 MB, free: 16.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005463/0.2215, allocations: 218.9 kB / 342.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008305/0.2223, allocations: 415.5 kB / 343 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.911e-05/0.2224, allocations: 39.98 kB / 343 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005001/0.2274, allocations: 11.56 MB / 354.6 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2274, allocations: 4 kB / 354.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.2299, allocations: 1.844 MB / 356.4 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000628/0.2305, allocations: 346.7 kB / 356.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.2306, allocations: 31.98 kB / 356.8 MB, free: 1.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004221/0.2311, allocations: 59.97 kB / 356.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.2313, allocations: 124.7 kB / 357 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.2313, allocations: 43.98 kB / 357 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008384/0.2322, allocations: 0.8122 MB / 357.8 MB, free: 88 kB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2322, allocations: 0 / 357.8 MB, free: 88 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001725/0.2339, allocations: 0.5782 MB / 358.4 MB, free: 15.5 MB / 298.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.0003137/0.2342, allocations: 159.8 kB / 358.6 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.2365, allocations: 1.625 MB / 360.2 MB, free: 13.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.2365, allocations: 4 kB / 360.2 MB, free: 13.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.2379, allocations: 1.56 MB / 361.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.2392, allocations: 427.6 kB / 362.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007345/0.2465, allocations: 5.151 MB / 367.3 MB, free: 6.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007483/0.2473, allocations: 0.8222 MB / 368.1 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009072/0.2482, allocations: 331.2 kB / 368.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/0.2485, allocations: 124.5 kB / 368.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of SimCode: time 2.194e-06/0.2485, allocations: 0 / 368.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of Templates: time 0.03957/0.288, allocations: 29.65 MB / 398.2 MB, free: 7.586 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.7193061499856412]