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.001282/0.001282, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.0009944/0.0009945, allocations: 200 kB / 18.01 MB, free: 5.055 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009151/0.0009151, allocations: 51.91 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2461, allocations: 49.43 MB / 400.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01751/0.2637, allocations: 16.64 MB / 417.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.2753, allocations: 5.411 MB / 422.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003617/0.2789, allocations: 103.6 kB / 422.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003606/0.2825, allocations: 1.289 MB / 424.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004749/0.2873, allocations: 1.661 MB / 425.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002264/0.2896, allocations: 1.047 MB / 426.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006291/0.2959, allocations: 5.118 MB / 432 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005199/0.3012, allocations: 4.303 MB / 436.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.3041, allocations: 2.192 MB / 438.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003344/0.3075, allocations: 2.6 MB / 441.1 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008819/0.3083, allocations: 0.6133 MB / 441.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.3101, allocations: 0.8434 MB / 442.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.3112, allocations: 1.414 MB / 444 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002698/0.314, allocations: 2.641 MB / 446.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009053/0.323, allocations: 8.085 MB / 454.7 MB, free: 2.605 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.3231, allocations: 4 kB / 454.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3231, allocations: 0 / 454.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002107/0.3233, allocations: 0 / 454.7 MB, free: 2.602 MB / 366.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.01441/0.3377, allocations: 5.374 MB / 460.1 MB, free: 13.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3378, allocations: 8.031 kB / 460.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/0.343, allocations: 0.9909 MB / 461.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006098/0.3491, allocations: 2.964 MB / 464.1 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.3494, allocations: 304.2 kB / 464.3 MB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006966/0.3501, allocations: 407.8 kB / 464.7 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00924/0.3593, allocations: 5.213 MB / 470 MB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.743e-05/0.3594, allocations: 4 kB / 470 MB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/0.3598, allocations: 160 kB / 470.1 MB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001659/0.36, allocations: 168 kB / 470.3 MB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007703/0.3677, allocations: 4.466 MB / 474.7 MB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02457/0.3923, allocations: 16.6 MB / 491.3 MB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00794/0.4003, allocations: 8.407 MB / 499.8 MB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002894/0.4032, allocations: 1.706 MB / 0.4897 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008119/0.4114, allocations: 4.95 MB / 0.4945 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.4114, allocations: 51.81 kB / 0.4946 GB, free: 12.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 4.989e-06/0.4115, allocations: 0 / 0.4946 GB, free: 12.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01215/0.4236, allocations: 6.15 MB / 0.5006 GB, free: 6.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.4237, allocations: 64.72 kB / 0.5007 GB, free: 6.508 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003499/0.4272, allocations: 2.282 MB / 0.5029 GB, free: 4.199 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002168/0.4274, allocations: 49.7 kB / 0.5029 GB, free: 4.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.4287, allocations: 1.852 MB / 0.5047 GB, free: 2.266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/0.4291, allocations: 0.5506 MB / 0.5053 GB, free: 1.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005719/0.4297, allocations: 395.7 kB / 0.5057 GB, free: 1.312 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.886e-05/0.4298, allocations: 305.1 kB / 0.5059 GB, free: 1.012 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.4312, allocations: 0.8474 MB / 0.5068 GB, free: 164 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.433, allocations: 1.555 MB / 0.5083 GB, free: 14.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/0.4364, allocations: 2.554 MB / 0.5108 GB, free: 11.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.4364, allocations: 8 kB / 0.5108 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004785/0.4412, allocations: 2.887 MB / 0.5136 GB, free: 8.477 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.4413, allocations: 19.94 kB / 0.5136 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/0.4413, allocations: 24 kB / 0.5137 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003409/0.4417, allocations: 126.2 kB / 0.5138 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.4436, allocations: 0.5343 MB / 0.5143 GB, free: 7.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.4452, allocations: 1.986 MB / 0.5162 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.4467, allocations: 115.8 kB / 0.5163 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.4469, allocations: 100.1 kB / 0.5164 GB, free: 5.438 MB / 446.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.001872/0.4488, allocations: 1.196 MB / 0.5176 GB, free: 4.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.4491, allocations: 241 kB / 0.5178 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003993/0.4531, allocations: 2.444 MB / 0.5202 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.4531, allocations: 16 kB / 0.5202 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4531, allocations: 8.125 kB / 0.5203 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4532, allocations: 11.97 kB / 0.5203 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008337/0.4615, allocations: 5.771 MB / 0.5259 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.4615, allocations: 8.125 kB / 0.5259 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.4628, allocations: 291.6 kB / 0.5262 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007508/0.4636, allocations: 312.6 kB / 0.5265 GB, free: 10.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.611e-05/0.4637, allocations: 39.98 kB / 0.5265 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006232/0.4699, allocations: 6.97 MB / 0.5333 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4699, allocations: 7.969 kB / 0.5333 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2136/0.6835, allocations: 3.549 MB / 0.5368 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/0.6854, allocations: 0.49 MB / 0.5373 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007403/0.6862, allocations: 34.81 kB / 0.5373 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/0.6877, allocations: 84.66 kB / 0.5374 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003932/0.6881, allocations: 117 kB / 0.5375 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.6882, allocations: 46.47 kB / 0.5375 GB, free: 127.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003279/0.6915, allocations: 1.551 MB / 0.5391 GB, free: 127.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6915, allocations: 1.438 kB / 0.5391 GB, free: 127.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002673/0.6942, allocations: 0.6703 MB / 0.5397 GB, free: 127.4 MB / 462.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.0003819/0.6946, allocations: 177 kB / 0.5399 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003633/0.6982, allocations: 2.282 MB / 0.5421 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.6983, allocations: 3.625 kB / 0.5421 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.7002, allocations: 1.432 MB / 0.5435 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.703, allocations: 0.6024 MB / 0.5441 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.7142, allocations: 6.863 MB / 0.5508 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.716, allocations: 2.662 MB / 0.5534 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001856/0.7179, allocations: 0.5589 MB / 0.554 GB, free: 121 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.7184, allocations: 165.8 kB / 0.5541 GB, free: 121 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.7184, allocations: 0 / 0.5541 GB, free: 121 MB / 462.1 MB Notification: Performance of Templates: time 0.04416/0.7625, allocations: 30.85 MB / 0.5842 GB, free: 92.23 MB / 462.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/jenkins/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/jenkins/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