Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008054/0.0008055, allocations: 95.22 kB / 17.31 MB, free: 6.359 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.0008397/0.0008397, allocations: 177 kB / 18.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.113/1.113, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002046/0.0002046, allocations: 11.94 kB / 302.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06892/0.06914, allocations: 50.42 MB / 352.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01279/0.08196, allocations: 15.69 MB / 368.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1403/0.2223, allocations: 5.294 MB / 373.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.2242, allocations: 97 kB / 373.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.2265, allocations: 1.084 MB / 374.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00308/0.2296, allocations: 1.451 MB / 376.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.2313, allocations: 0.9486 MB / 377.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.2364, allocations: 5.295 MB / 382.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003527/0.2399, allocations: 3.624 MB / 386 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.2421, allocations: 1.603 MB / 387.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00211/0.2442, allocations: 2.137 MB / 389.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.2446, allocations: 251.7 kB / 390 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.2457, allocations: 485 kB / 390.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006427/0.2463, allocations: 0.9823 MB / 391.4 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001591/0.2479, allocations: 2.18 MB / 393.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003807/0.2517, allocations: 6.6 MB / 400.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2517, allocations: 0 / 400.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2517, allocations: 0 / 400.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.317e-05/0.2518, allocations: 0 / 400.2 MB, free: 15.28 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.00874/0.2606, allocations: 4.566 MB / 404.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2606, allocations: 8.031 kB / 404.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004414/0.265, allocations: 0.9978 MB / 405.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004011/0.269, allocations: 2.812 MB / 408.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.2693, allocations: 308.6 kB / 408.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005175/0.2698, allocations: 406.7 kB / 409.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007531/0.2773, allocations: 5.232 MB / 414.5 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.991e-05/0.2774, allocations: 7.938 kB / 414.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003145/0.2777, allocations: 163 kB / 414.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.2779, allocations: 176 kB / 414.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006586/0.2845, allocations: 4.494 MB / 419.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02024/0.3047, allocations: 16.93 MB / 436.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006196/0.311, allocations: 8.444 MB / 444.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002404/0.3134, allocations: 1.712 MB / 446.4 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006532/0.3199, allocations: 5.038 MB / 451.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.32, allocations: 47.88 kB / 451.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=157): time 2.545e-06/0.32, allocations: 4 kB / 451.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=160): time 0.009982/0.33, allocations: 6.249 MB / 457.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.33, allocations: 68.72 kB / 457.8 MB, free: 4.734 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002706/0.3327, allocations: 2.31 MB / 460.2 MB, free: 2.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.223e-05/0.3328, allocations: 61.7 kB / 460.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.3339, allocations: 1.836 MB / 462.1 MB, free: 492 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003482/0.3342, allocations: 0.551 MB / 462.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.3344, allocations: 178 kB / 462.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.918e-05/0.3345, allocations: 301.1 kB / 463.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.3358, allocations: 0.867 MB / 463.9 MB, free: 14.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/0.3374, allocations: 1.578 MB / 465.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/0.3405, allocations: 2.593 MB / 468.1 MB, free: 9.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.3405, allocations: 4 kB / 468.1 MB, free: 9.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003992/0.3445, allocations: 2.923 MB / 471 MB, free: 6.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3445, allocations: 24.41 kB / 471.1 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.3446, allocations: 20 kB / 471.1 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002677/0.3448, allocations: 129.7 kB / 471.2 MB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/0.3466, allocations: 0.546 MB / 471.8 MB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.348, allocations: 1.828 MB / 473.6 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.3494, allocations: 115.9 kB / 473.7 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.3495, allocations: 104 kB / 473.8 MB, free: 3.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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.001688/0.3512, allocations: 1.188 MB / 475 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/0.3515, allocations: 241.1 kB / 475.2 MB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.3552, allocations: 2.495 MB / 477.7 MB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3552, allocations: 16 kB / 477.7 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3552, allocations: 4 kB / 477.7 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.3553, allocations: 7.969 kB / 477.7 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007456/0.3627, allocations: 5.854 MB / 483.6 MB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.3627, allocations: 4 kB / 483.6 MB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.3639, allocations: 295.8 kB / 483.9 MB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007413/0.3646, allocations: 328.8 kB / 484.2 MB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.484e-05/0.3647, allocations: 39.98 kB / 484.3 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005309/0.37, allocations: 6.407 MB / 490.7 MB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3701, allocations: 4.219 kB / 490.7 MB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/0.3749, allocations: 3.607 MB / 494.3 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008026/0.3757, allocations: 0.5135 MB / 494.8 MB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/0.376, allocations: 36 kB / 494.8 MB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.3771, allocations: 95.92 kB / 494.9 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.3773, allocations: 113.1 kB / 495 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-05/0.3774, allocations: 47.98 kB / 495.1 MB, free: 13.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002133/0.3796, allocations: 1.568 MB / 496.6 MB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3796, allocations: 4 kB / 496.6 MB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001866/0.3814, allocations: 0.6641 MB / 497.3 MB, free: 11.72 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.0002982/0.3817, allocations: 184.7 kB / 497.5 MB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.3851, allocations: 2.305 MB / 499.8 MB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3851, allocations: 0 / 499.8 MB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.387, allocations: 1.461 MB / 0.4895 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.3896, allocations: 0.5719 MB / 0.4901 GB, free: 7.129 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.4006, allocations: 8.739 MB / 0.4986 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002138/0.4028, allocations: 2.599 MB / 0.5011 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005507/0.4034, allocations: 179.4 kB / 0.5013 GB, free: 11.54 MB / 430.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4034, allocations: 0 / 0.5013 GB, free: 11.54 MB / 430.1 MB Notification: Performance of Templates: time 0.2098/0.6131, allocations: 94.68 MB / 0.5938 GB, free: 95.59 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches