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.0009028/0.0009028, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001544/0.001544, allocations: 166.9 kB / 25.61 MB, free: 8.91 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.8565/0.8565, allocations: 158.6 MB / 187.5 MB, free: 2.793 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.503e-06/1.503e-06, allocations: 0 / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.359e-05, allocations: 2.312 kB / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.009676/0.00969, allocations: 12.31 MB / 263.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005956/0.01565, allocations: 4.206 MB / 268 MB, free: 6.637 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009568/0.0166, allocations: 79.5 kB / 268.1 MB, free: 6.559 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.0184, allocations: 0.963 MB / 269 MB, free: 5.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002333/0.02074, allocations: 1.316 MB / 270.4 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.02185, allocations: 0.8611 MB / 271.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002922/0.02477, allocations: 4.221 MB / 275.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.02634, allocations: 1.694 MB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002882/0.02922, allocations: 2.94 MB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.03072, allocations: 1.972 MB / 282 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003804/0.0311, allocations: 0.5039 MB / 282.6 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007908/0.03189, allocations: 0.6949 MB / 283.2 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006398/0.03253, allocations: 1.18 MB / 284.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.03361, allocations: 1.442 MB / 285.9 MB, free: 4.645 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002478/0.03609, allocations: 3.443 MB / 289.3 MB, free: 1.191 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.03609, allocations: 0 / 289.3 MB, free: 1.191 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.03609, allocations: 0 / 289.3 MB, free: 1.191 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.271e-05/0.03612, allocations: 4 kB / 289.3 MB, free: 1.188 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.005066/0.04118, allocations: 4.491 MB / 293.8 MB, free: 12.62 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.04122, allocations: 19.98 kB / 293.8 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002292/0.04351, allocations: 1.154 MB / 295 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.04537, allocations: 2.036 MB / 297 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.04548, allocations: 234.6 kB / 297.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002933/0.04578, allocations: 312.3 kB / 297.6 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.04832, allocations: 2.327 MB / 299.9 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.35e-05/0.04836, allocations: 7.938 kB / 299.9 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.04854, allocations: 128 kB / 300 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.098e-05/0.04863, allocations: 146.2 kB / 300.2 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.04993, allocations: 0.8975 MB / 301.1 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.0604, allocations: 10.5 MB / 311.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.0631, allocations: 1.79 MB / 313.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.0643, allocations: 0.6626 MB / 314 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.06747, allocations: 2.225 MB / 316.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.0675, allocations: 46.39 kB / 316.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 3.747e-06/0.06751, allocations: 3.984 kB / 316.3 MB, free: 5.723 MB / 298.7 MB Notification: Performance of matching and sorting (n=144): time 0.006371/0.07388, allocations: 3.397 MB / 319.7 MB, free: 2.273 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.07392, allocations: 72.66 kB / 319.7 MB, free: 2.191 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.07549, allocations: 1.384 MB / 321.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.02e-05/0.07556, allocations: 53.7 kB / 321.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009409/0.0765, allocations: 1.575 MB / 322.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000354/0.07685, allocations: 0.5307 MB / 323.3 MB, free: 14.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004242/0.07728, allocations: 333 kB / 323.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.07738, allocations: 476.8 kB / 324.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.07773, allocations: 203.8 kB / 324.3 MB, free: 13.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007225/0.07846, allocations: 0.8842 MB / 325.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.07968, allocations: 1.201 MB / 326.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.07969, allocations: 4 kB / 326.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002324/0.08201, allocations: 1.474 MB / 327.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.08203, allocations: 12 kB / 327.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.08205, allocations: 12 kB / 327.9 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.08307, allocations: 430.7 kB / 328.3 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009725/0.08405, allocations: 371.4 kB / 328.7 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004663/0.08871, allocations: 5.623 MB / 334.3 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006139/0.08932, allocations: 59.95 kB / 334.3 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-05/0.08942, allocations: 55.98 kB / 334.4 MB, free: 2.711 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.0006376/0.09006, allocations: 268.1 kB / 334.6 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.09032, allocations: 230.8 kB / 334.9 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001889/0.0922, allocations: 1.256 MB / 336.1 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.09221, allocations: 16 kB / 336.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.09222, allocations: 12 kB / 336.2 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.09223, allocations: 7.969 kB / 336.2 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004501/0.09674, allocations: 3.051 MB / 339.2 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.09674, allocations: 4 kB / 339.2 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006128/0.09735, allocations: 196 kB / 339.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008993/0.09825, allocations: 413.8 kB / 339.8 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.125e-05/0.09832, allocations: 35.98 kB / 339.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00655/0.1049, allocations: 11.32 MB / 351.2 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1049, allocations: 7.969 kB / 351.2 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1225/0.2274, allocations: 1.672 MB / 352.8 MB, free: 79.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008898/0.2283, allocations: 330.8 kB / 353.2 MB, free: 79.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.2285, allocations: 27.83 kB / 353.2 MB, free: 79.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/0.229, allocations: 54.25 kB / 353.3 MB, free: 79.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.2292, allocations: 113.8 kB / 353.4 MB, free: 79.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.2293, allocations: 35.22 kB / 353.4 MB, free: 79.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007731/0.2301, allocations: 0.743 MB / 354.1 MB, free: 79.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2301, allocations: 1.125 kB / 354.1 MB, free: 79.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001552/0.2316, allocations: 0.5805 MB / 354.7 MB, free: 79.34 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.000267/0.2319, allocations: 163.3 kB / 354.9 MB, free: 79.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.2337, allocations: 1.518 MB / 356.4 MB, free: 78.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2337, allocations: 0 / 356.4 MB, free: 78.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.235, allocations: 1.514 MB / 357.9 MB, free: 77.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.2365, allocations: 442.1 kB / 358.3 MB, free: 77.93 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007341/0.2438, allocations: 5.081 MB / 363.4 MB, free: 75.87 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008228/0.2446, allocations: 0.8288 MB / 364.3 MB, free: 75.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008348/0.2455, allocations: 242 kB / 364.5 MB, free: 75.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000671/0.2461, allocations: 489.7 kB / 365 MB, free: 75.61 MB / 330.7 MB Notification: Performance of SimCode: time 1.804e-06/0.2461, allocations: 0 / 365 MB, free: 75.61 MB / 330.7 MB Notification: Performance of Templates: time 0.03724/0.2834, allocations: 30.31 MB / 395.3 MB, free: 51.48 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.612667690962553]