Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|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.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|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.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 94.02 kB / 17.3 MB, free: 6.395 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.001217/0.001217, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.329/1.329, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004954/0.0004953, allocations: 12 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08941, allocations: 47.59 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01698/0.1064, allocations: 15.81 MB / 344.8 MB, free: 3.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.1177, allocations: 5.589 MB / 350.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.1208, allocations: 91.56 kB / 350.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00422/0.125, allocations: 1.158 MB / 351.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006145/0.1312, allocations: 1.621 MB / 353.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002969/0.1342, allocations: 0.9553 MB / 354.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008986/0.1432, allocations: 6.927 MB / 361.1 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007351/0.1506, allocations: 4.39 MB / 365.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005289/0.1559, allocations: 2.081 MB / 367.6 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005095/0.161, allocations: 2.73 MB / 370.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001491/0.1625, allocations: 332 kB / 370.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00298/0.1655, allocations: 0.6207 MB / 371.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002174/0.1677, allocations: 1.308 MB / 372.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005265/0.173, allocations: 2.761 MB / 375.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2074/0.3804, allocations: 9.827 MB / 385.2 MB, free: 23.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3804, allocations: 0 / 385.2 MB, free: 23.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3804, allocations: 1 kB / 385.2 MB, free: 23.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003149/0.3808, allocations: 3.719 kB / 385.2 MB, free: 23.16 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01627/0.397, allocations: 5.48 MB / 390.7 MB, free: 21.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.3971, allocations: 9.406 kB / 390.7 MB, free: 21.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007136/0.4043, allocations: 1.062 MB / 391.7 MB, free: 20.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00749/0.4118, allocations: 3.333 MB / 395.1 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/0.4121, allocations: 367.5 kB / 395.4 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/0.4134, allocations: 492.4 kB / 395.9 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.4272, allocations: 6.879 MB / 402.8 MB, free: 18.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.4274, allocations: 4 kB / 402.8 MB, free: 18.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005196/0.4279, allocations: 201.5 kB / 403 MB, free: 18.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003106/0.4282, allocations: 240.3 kB / 403.2 MB, free: 18.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009694/0.4379, allocations: 5.958 MB / 409.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03294/0.4709, allocations: 21.05 MB / 430.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.481, allocations: 9.963 MB / 440.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004371/0.4854, allocations: 2.507 MB / 442.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.4984, allocations: 6.528 MB / 449.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.369e-05/0.4985, allocations: 56.56 kB / 449.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 5.991e-06/0.4985, allocations: 0 / 449.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.0221/0.5207, allocations: 9.765 MB / 459 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.5208, allocations: 80.97 kB / 459.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006431/0.5272, allocations: 2.992 MB / 462.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003867/0.5276, allocations: 61.7 kB / 462.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/0.5294, allocations: 2.158 MB / 464.3 MB, free: 8.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008674/0.5303, allocations: 0.758 MB / 465.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/0.5308, allocations: 214.9 kB / 465.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/0.5309, allocations: 309.1 kB / 465.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002454/0.5333, allocations: 1.301 MB / 466.9 MB, free: 6.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002873/0.5362, allocations: 1.933 MB / 468.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005045/0.5413, allocations: 3.366 MB / 472.2 MB, free: 0.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.5413, allocations: 4 kB / 472.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007313/0.5486, allocations: 4.275 MB / 476.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.5487, allocations: 15.94 kB / 476.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.324e-05/0.5487, allocations: 20 kB / 476.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/0.5515, allocations: 0.7816 MB / 477.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/0.5538, allocations: 0.5654 MB / 477.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.5647, allocations: 10.06 MB / 487.9 MB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/0.5678, allocations: 111.9 kB / 488 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004859/0.5683, allocations: 103.9 kB / 488.1 MB, free: 204 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003916/0.5722, allocations: 1.617 MB / 489.7 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/0.5734, allocations: 316.2 kB / 490.1 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007964/0.5814, allocations: 3.935 MB / 494 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.5814, allocations: 20 kB / 494 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-05/0.5815, allocations: 15.94 kB / 494 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.5815, allocations: 7.969 kB / 494 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/0.5978, allocations: 8.594 MB / 0.4908 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5979, allocations: 4 kB / 0.4909 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/0.5994, allocations: 349.4 kB / 0.4912 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003138/0.6025, allocations: 0.933 MB / 0.4921 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001635/0.6027, allocations: 59.97 kB / 0.4922 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/0.6177, allocations: 14.43 MB / 0.5062 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.6177, allocations: 0 / 0.5062 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.628, allocations: 5.729 MB / 0.5118 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00232/0.6303, allocations: 0.6924 MB / 0.5125 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001402/0.6318, allocations: 55.98 kB / 0.5126 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/0.6342, allocations: 119.9 kB / 0.5127 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005719/0.6348, allocations: 189.1 kB / 0.5129 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001983/0.635, allocations: 67.98 kB / 0.5129 GB, free: 10.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004761/0.6398, allocations: 2.058 MB / 0.5149 GB, free: 8.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6398, allocations: 4 kB / 0.5149 GB, free: 8.172 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004424/0.6442, allocations: 0.9436 MB / 0.5159 GB, free: 7.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007395/0.645, allocations: 253.1 kB / 0.5161 GB, free: 6.996 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006445/0.6514, allocations: 3.919 MB / 0.5199 GB, free: 3.074 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.6515, allocations: 64 / 0.5199 GB, free: 3.074 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0042/0.6557, allocations: 2.668 MB / 0.5225 GB, free: 376 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005083/0.6608, allocations: 0.8544 MB / 0.5234 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01879/0.6796, allocations: 11.76 MB / 0.5349 GB, free: 3.699 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/0.6833, allocations: 3.422 MB / 0.5382 GB, free: 248 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1994/0.8827, allocations: 0.7634 MB / 0.5389 GB, free: 157.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006444/0.8834, allocations: 189.5 kB / 0.5391 GB, free: 157.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.332e-06/0.8834, allocations: 0 / 0.5391 GB, free: 157.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07948/0.9629, allocations: 48.33 MB / 0.5863 GB, free: 125.9 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_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_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches