Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 104.1 kB / 17.58 MB, free: 5.555 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.001208/0.001208, allocations: 192.1 kB / 18.51 MB, free: 4.637 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.459/1.459, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001231/0.001231, allocations: 55.91 kB / 280.7 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08827, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01788/0.1062, allocations: 16.58 MB / 343.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1166, allocations: 5.441 MB / 349.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002717/0.1194, allocations: 91.62 kB / 349.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003685/0.1231, allocations: 1.242 MB / 350.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005553/0.1287, allocations: 1.6 MB / 352.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.1312, allocations: 1.052 MB / 353.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006294/0.1375, allocations: 5.106 MB / 358.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004195/0.1417, allocations: 3.842 MB / 362.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.1444, allocations: 2.169 MB / 364.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003411/0.1478, allocations: 2.588 MB / 367 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001052/0.1489, allocations: 0.6133 MB / 367.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.1509, allocations: 0.8513 MB / 368.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.1522, allocations: 1.418 MB / 369.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003657/0.1559, allocations: 2.625 MB / 372.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1557/0.3115, allocations: 8.005 MB / 380.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3116, allocations: 0 / 380.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3116, allocations: 3.875 kB / 380.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002704/0.3119, allocations: 0.9375 kB / 380.5 MB, free: 24.64 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01627/0.3281, allocations: 5.371 MB / 385.9 MB, free: 22.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3282, allocations: 10.25 kB / 385.9 MB, free: 22.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005606/0.3338, allocations: 1.001 MB / 386.9 MB, free: 22.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006405/0.3402, allocations: 2.771 MB / 389.7 MB, free: 21.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.3407, allocations: 309.8 kB / 390 MB, free: 21.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.3419, allocations: 401.9 kB / 390.4 MB, free: 21.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.3533, allocations: 5.21 MB / 395.6 MB, free: 21.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.3535, allocations: 5.031 kB / 395.6 MB, free: 21.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/0.3539, allocations: 165.3 kB / 395.7 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002083/0.3541, allocations: 170.8 kB / 395.9 MB, free: 21.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008157/0.3623, allocations: 4.447 MB / 400.4 MB, free: 19.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02831/0.3906, allocations: 16.79 MB / 417.2 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006119/0.3968, allocations: 8.41 MB / 425.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.3999, allocations: 1.707 MB / 427.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008766/0.4087, allocations: 4.965 MB / 432.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.4088, allocations: 51.86 kB / 432.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.787e-06/0.4088, allocations: 4 kB / 432.3 MB, free: 7.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=159): time 0.01258/0.4214, allocations: 6.115 MB / 438.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.4215, allocations: 68.72 kB / 438.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.4245, allocations: 2.29 MB / 440.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.4246, allocations: 49.7 kB / 440.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.4258, allocations: 1.852 MB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004083/0.4262, allocations: 0.5444 MB / 443.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005322/0.4268, allocations: 399.6 kB / 443.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.272e-05/0.4269, allocations: 305.1 kB / 443.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4282, allocations: 0.8397 MB / 444.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.43, allocations: 1.562 MB / 446.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00321/0.4332, allocations: 2.553 MB / 448.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.4332, allocations: 8 kB / 448.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004711/0.438, allocations: 2.876 MB / 451.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.438, allocations: 19.94 kB / 451.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/0.4381, allocations: 20 kB / 451.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.4384, allocations: 130.2 kB / 451.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.4403, allocations: 0.5345 MB / 452.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/0.4421, allocations: 1.999 MB / 454.4 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/0.4443, allocations: 111.9 kB / 454.5 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/0.4445, allocations: 99.98 kB / 454.6 MB, free: 15.92 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002229/0.4467, allocations: 1.184 MB / 455.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005073/0.4472, allocations: 245.8 kB / 456.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004127/0.4514, allocations: 2.438 MB / 458.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.4514, allocations: 22.08 kB / 458.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/0.4514, allocations: 4 kB / 458.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.4514, allocations: 7.969 kB / 458.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008954/0.4604, allocations: 5.782 MB / 464.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.4604, allocations: 4 kB / 464.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.4617, allocations: 289.6 kB / 464.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007602/0.4624, allocations: 317.4 kB / 464.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-05/0.4625, allocations: 43.98 kB / 465 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006674/0.4692, allocations: 6.956 MB / 471.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/0.4693, allocations: 7.375 kB / 471.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005942/0.4752, allocations: 3.543 MB / 475.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.4765, allocations: 0.491 MB / 476 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003503/0.4769, allocations: 39.98 kB / 476 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.478, allocations: 79.94 kB / 476.1 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.4783, allocations: 116.7 kB / 476.2 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.115e-05/0.4784, allocations: 47.98 kB / 476.2 MB, free: 9.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002203/0.4807, allocations: 1.552 MB / 477.8 MB, free: 8.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4807, allocations: 0 / 477.8 MB, free: 8.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002273/0.4829, allocations: 0.668 MB / 478.5 MB, free: 7.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003465/0.4833, allocations: 175.2 kB / 478.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005944/0.4893, allocations: 2.879 MB / 481.5 MB, free: 4.566 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/0.4893, allocations: 4 kB / 481.5 MB, free: 4.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.4914, allocations: 1.454 MB / 483 MB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.4942, allocations: 0.6044 MB / 483.6 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.5057, allocations: 6.966 MB / 490.5 MB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/0.508, allocations: 2.661 MB / 493.2 MB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002007/0.5101, allocations: 0.5552 MB / 493.7 MB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.5105, allocations: 163.4 kB / 493.9 MB, free: 8.109 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5105, allocations: 0 / 493.9 MB, free: 8.109 MB / 398.1 MB Notification: Performance of Templates: time 0.05573/0.5662, allocations: 32.22 MB / 0.5138 GB, free: 7.938 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches