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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|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=30000,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.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 109.4 kB / 18.36 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 192 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001296, allocations: 51.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.0887, allocations: 46.62 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01498/0.1037, allocations: 12.83 MB / 341.6 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007852/0.1116, allocations: 4.291 MB / 345.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.1132, allocations: 67.69 kB / 345.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.1154, allocations: 0.959 MB / 346.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003265/0.1187, allocations: 1.293 MB / 348.2 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.1205, allocations: 0.8612 MB / 349 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004278/0.1248, allocations: 4.047 MB / 353.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003396/0.1282, allocations: 3.184 MB / 356.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.1306, allocations: 1.881 MB / 358.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002507/0.1331, allocations: 2.109 MB / 360.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005851/0.1337, allocations: 0.5117 MB / 360.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.1349, allocations: 0.7107 MB / 361.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009122/0.1358, allocations: 1.141 MB / 362.6 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001973/0.1378, allocations: 2.12 MB / 364.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005603/0.1434, allocations: 6.734 MB / 371.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1434, allocations: 4 kB / 371.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1434, allocations: 0 / 371.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001293/0.1436, allocations: 0 / 371.5 MB, free: 8.754 MB / 318.1 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.01096/0.1545, allocations: 4.394 MB / 375.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1546, allocations: 12.03 kB / 375.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004104/0.1587, allocations: 0.8085 MB / 376.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004364/0.1631, allocations: 2.331 MB / 379 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.1633, allocations: 234.6 kB / 379.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004948/0.1638, allocations: 312 kB / 379.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1574/0.3212, allocations: 4.257 MB / 383.8 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.3213, allocations: 3.109 kB / 383.8 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003311/0.3217, allocations: 126.7 kB / 383.9 MB, free: 47.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001974/0.3219, allocations: 147.2 kB / 384.1 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007138/0.329, allocations: 3.655 MB / 387.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0177/0.3467, allocations: 13.34 MB / 401.1 MB, free: 37.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004529/0.3513, allocations: 6.852 MB / 407.9 MB, free: 31.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.3531, allocations: 1.421 MB / 409.4 MB, free: 30.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004876/0.358, allocations: 3.624 MB / 413 MB, free: 27.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.358, allocations: 43.56 kB / 413 MB, free: 27.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.685e-06/0.3581, allocations: 0 / 413 MB, free: 27.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.011/0.3691, allocations: 6.624 MB / 419.6 MB, free: 20.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.3692, allocations: 68.72 kB / 419.7 MB, free: 20.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002387/0.3716, allocations: 1.866 MB / 421.6 MB, free: 18.92 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.551e-05/0.3717, allocations: 49.7 kB / 421.6 MB, free: 18.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006379/0.3723, allocations: 1.412 MB / 423 MB, free: 17.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000261/0.3726, allocations: 0.4925 MB / 423.5 MB, free: 16.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004068/0.373, allocations: 303.3 kB / 423.8 MB, free: 16.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.036e-05/0.373, allocations: 309.1 kB / 424.1 MB, free: 16.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009552/0.374, allocations: 0.7574 MB / 424.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.3751, allocations: 1.227 MB / 426.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.3773, allocations: 2.104 MB / 428.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.3773, allocations: 4 kB / 428.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003588/0.3809, allocations: 2.666 MB / 430.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.381, allocations: 9.969 kB / 430.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.381, allocations: 16 kB / 430.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.3822, allocations: 0.4974 MB / 431.4 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.3836, allocations: 383.4 kB / 431.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/0.3902, allocations: 6.931 MB / 438.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.3917, allocations: 75.89 kB / 438.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3919, allocations: 75.98 kB / 438.9 MB, free: 0.9336 MB / 318.1 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.001716/0.3936, allocations: 1.044 MB / 439.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003215/0.3939, allocations: 197.7 kB / 440.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004243/0.3982, allocations: 2.505 MB / 442.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.3982, allocations: 15.94 kB / 442.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.3982, allocations: 8 kB / 442.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.3982, allocations: 7.969 kB / 442.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008946/0.4072, allocations: 5.535 MB / 448.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.4072, allocations: 0 / 448.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009813/0.4082, allocations: 215.7 kB / 448.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.4095, allocations: 0.4992 MB / 448.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.683e-05/0.4096, allocations: 35.98 kB / 448.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.42, allocations: 11.4 MB / 460.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.42, allocations: 8.094 kB / 460.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005358/0.4254, allocations: 3.566 MB / 463.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.4264, allocations: 458.6 kB / 464.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.4267, allocations: 32 kB / 464.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009211/0.4276, allocations: 67.95 kB / 464.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/0.4279, allocations: 117.1 kB / 464.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.428, allocations: 35.98 kB / 464.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001869/0.4299, allocations: 1.286 MB / 465.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4299, allocations: 7.938 kB / 465.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001933/0.4318, allocations: 0.5886 MB / 466.5 MB, free: 4.379 MB / 350.1 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.0002982/0.4321, allocations: 153.3 kB / 466.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003875/0.436, allocations: 2.413 MB / 469 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.436, allocations: 0 / 469 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.4384, allocations: 1.707 MB / 470.7 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.4403, allocations: 0.5128 MB / 471.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009223/0.4496, allocations: 5.927 MB / 477.2 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.4516, allocations: 2.366 MB / 479.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001251/0.4529, allocations: 416.8 kB / 479.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.4533, allocations: 131.4 kB / 480.1 MB, free: 6.609 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4533, allocations: 0 / 480.1 MB, free: 6.609 MB / 366.1 MB Notification: Performance of Templates: time 0.05561/0.5089, allocations: 30.93 MB / 0.499 GB, free: 7.668 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches