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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.184/1.184, allocations: 205.1 MB / 223.7 MB, free: 8.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008565/0.0008564, allocations: 103.2 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007664/0.0007664, allocations: 43.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.192, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.0106/0.2027, allocations: 12.69 MB / 386.5 MB, free: 35.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006738/0.2095, allocations: 4.25 MB / 390.8 MB, free: 32.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.2115, allocations: 61.75 kB / 390.8 MB, free: 32.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.2141, allocations: 0.8524 MB / 391.7 MB, free: 31.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003266/0.2174, allocations: 1.162 MB / 392.8 MB, free: 30.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001772/0.2192, allocations: 0.7938 MB / 393.6 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.2232, allocations: 4.398 MB / 398 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002562/0.2258, allocations: 2.653 MB / 400.7 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.2273, allocations: 1.487 MB / 402.2 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002073/0.2294, allocations: 1.945 MB / 404.1 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006882/0.2301, allocations: 296 kB / 404.4 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.2314, allocations: 0.4997 MB / 404.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005632/0.232, allocations: 0.8992 MB / 405.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.2333, allocations: 1.886 MB / 407.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003527/0.2368, allocations: 6.52 MB / 414.2 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2368, allocations: 0 / 414.2 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2369, allocations: 4 kB / 414.2 MB, free: 8.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.938e-05/0.2369, allocations: 0 / 414.2 MB, free: 8.945 MB / 298.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.007641/0.2446, allocations: 4.39 MB / 418.6 MB, free: 4.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2446, allocations: 8.031 kB / 418.6 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00338/0.248, allocations: 0.8124 MB / 419.4 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002972/0.251, allocations: 2.257 MB / 421.7 MB, free: 1.344 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.59e-05/0.2511, allocations: 230.6 kB / 421.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003315/0.2514, allocations: 320 kB / 422.2 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005751/0.2572, allocations: 4.258 MB / 426.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/0.2573, allocations: 3.906 kB / 426.5 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002516/0.2575, allocations: 132 kB / 426.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.2576, allocations: 142.2 kB / 426.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005237/0.2629, allocations: 3.651 MB / 430.4 MB, free: 8.562 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01709/0.28, allocations: 13.5 MB / 443.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005634/0.2856, allocations: 6.87 MB / 450.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.2877, allocations: 1.421 MB / 452.2 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005171/0.2928, allocations: 3.643 MB / 455.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2929, allocations: 51.56 kB / 455.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=124): time 3.356e-06/0.2929, allocations: 0 / 455.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=144): time 0.01165/0.3046, allocations: 6.618 MB / 462.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3046, allocations: 68.72 kB / 462.6 MB, free: 6.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002412/0.307, allocations: 1.863 MB / 464.4 MB, free: 4.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.605e-05/0.3071, allocations: 49.7 kB / 464.5 MB, free: 4.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008241/0.308, allocations: 1.412 MB / 465.9 MB, free: 3.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000318/0.3083, allocations: 0.489 MB / 466.4 MB, free: 2.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004363/0.3087, allocations: 311.3 kB / 466.7 MB, free: 2.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.454e-05/0.3088, allocations: 305.1 kB / 467 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.3099, allocations: 0.7574 MB / 467.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.3112, allocations: 1.228 MB / 469 MB, free: 212 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.3137, allocations: 2.1 MB / 471.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.3137, allocations: 4 kB / 471.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.00396/0.3177, allocations: 2.667 MB / 473.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.3177, allocations: 15.94 kB / 473.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.3177, allocations: 12.28 kB / 473.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.319, allocations: 0.4975 MB / 474.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.3204, allocations: 387.4 kB / 474.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007319/0.3277, allocations: 6.41 MB / 481.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.329, allocations: 75.86 kB / 481.1 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.3291, allocations: 71.98 kB / 481.2 MB, free: 3.484 MB / 362.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.001634/0.3307, allocations: 1.044 MB / 482.2 MB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.331, allocations: 201.6 kB / 482.4 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.3348, allocations: 2.5 MB / 484.9 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.3348, allocations: 12 kB / 485 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.3348, allocations: 12 kB / 485 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.3348, allocations: 7.969 kB / 485 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007843/0.3427, allocations: 5.536 MB / 490.5 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3427, allocations: 0 / 490.5 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009317/0.3437, allocations: 215.7 kB / 490.7 MB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.3449, allocations: 0.5038 MB / 491.2 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.392e-05/0.345, allocations: 35.98 kB / 491.3 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009875/0.3549, allocations: 10.46 MB / 0.49 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3549, allocations: 4.031 kB / 0.49 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1718/0.5267, allocations: 27.12 MB / 0.5164 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009788/0.5277, allocations: 451.9 kB / 0.5169 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004288/0.5282, allocations: 36.98 kB / 0.5169 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.5293, allocations: 67.72 kB / 0.517 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002904/0.5296, allocations: 107 kB / 0.5171 GB, free: 109.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.5297, allocations: 43.98 kB / 0.5171 GB, free: 109.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001925/0.5316, allocations: 1.291 MB / 0.5184 GB, free: 109.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5317, allocations: 0 / 0.5184 GB, free: 109.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002684/0.5343, allocations: 0.8014 MB / 0.5192 GB, free: 109.3 MB / 394.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.0002779/0.5346, allocations: 159.4 kB / 0.5193 GB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003585/0.5382, allocations: 2.396 MB / 0.5217 GB, free: 108.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5382, allocations: 0.9688 kB / 0.5217 GB, free: 108.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.5402, allocations: 1.721 MB / 0.5233 GB, free: 107.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.5423, allocations: 0.4971 MB / 0.5238 GB, free: 106.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.5523, allocations: 9.088 MB / 0.5327 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001912/0.5542, allocations: 2.42 MB / 0.5351 GB, free: 99.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001347/0.5556, allocations: 417.6 kB / 0.5355 GB, free: 99.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.556, allocations: 137.7 kB / 0.5356 GB, free: 99.32 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.556, allocations: 0 / 0.5356 GB, free: 99.32 MB / 394.7 MB Notification: Performance of Templates: time 0.04345/0.5995, allocations: 35.72 MB / 0.5705 GB, free: 63.82 MB / 394.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","../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