Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 101.9 kB / 17.01 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001426, allocations: 198.5 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002321/0.0002321, allocations: 4 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09119/0.09144, allocations: 51.52 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.1817/0.2732, allocations: 15.19 MB / 373.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009381/0.2826, allocations: 5.269 MB / 379.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002879/0.2855, allocations: 100.7 kB / 379.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003089/0.2886, allocations: 0.9582 MB / 380.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004576/0.2932, allocations: 1.304 MB / 381.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.2957, allocations: 0.7532 MB / 382.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006938/0.3026, allocations: 5.039 MB / 387.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005231/0.3079, allocations: 2.74 MB / 390 MB, free: 6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/0.3112, allocations: 1.584 MB / 391.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00388/0.3151, allocations: 2.04 MB / 393.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001289/0.3164, allocations: 251.6 kB / 393.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.319, allocations: 487.1 kB / 394.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.3201, allocations: 0.971 MB / 395.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.3217, allocations: 0.9096 MB / 396.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006088/0.3278, allocations: 6.627 MB / 402.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3278, allocations: 0 / 402.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3278, allocations: 0 / 402.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.328, allocations: 0 / 402.9 MB, free: 14.38 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.01194/0.34, allocations: 4.644 MB / 407.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3401, allocations: 8.031 kB / 407.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005877/0.3459, allocations: 1.027 MB / 408.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005555/0.3515, allocations: 2.775 MB / 411.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.3518, allocations: 313.9 kB / 411.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006377/0.3524, allocations: 406.5 kB / 412 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00968/0.3621, allocations: 5.196 MB / 417.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.078e-05/0.3623, allocations: 0 / 417.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004047/0.3627, allocations: 170.4 kB / 417.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001869/0.3629, allocations: 180 kB / 417.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00833/0.3712, allocations: 4.462 MB / 422 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02588/0.3971, allocations: 17.01 MB / 439 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0074/0.4046, allocations: 8.711 MB / 447.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003634/0.4082, allocations: 2.032 MB / 449.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008805/0.4171, allocations: 5.823 MB / 455.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.4171, allocations: 51.88 kB / 455.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=157): time 3.877e-06/0.4171, allocations: 0 / 455.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=160): time 0.01224/0.4294, allocations: 6.416 MB / 462.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.4295, allocations: 72.7 kB / 462.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.4328, allocations: 2.315 MB / 464.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4329, allocations: 53.7 kB / 464.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/0.4342, allocations: 1.856 MB / 466.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004467/0.4347, allocations: 0.5507 MB / 466.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4348, allocations: 40 kB / 466.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.435, allocations: 390.2 kB / 467.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.4365, allocations: 0.867 MB / 468.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.4384, allocations: 1.586 MB / 469.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.4402, allocations: 1.142 MB / 470.9 MB, free: 9.059 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.4402, allocations: 4 kB / 470.9 MB, free: 9.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004735/0.4449, allocations: 2.99 MB / 473.9 MB, free: 6.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.445, allocations: 16 kB / 473.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/0.445, allocations: 20 kB / 473.9 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000411/0.4454, allocations: 181.9 kB / 474.1 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/0.4474, allocations: 0.5421 MB / 474.7 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/0.4497, allocations: 2.27 MB / 476.9 MB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.4514, allocations: 119.8 kB / 477.1 MB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.4516, allocations: 99.98 kB / 477.1 MB, free: 2.645 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 (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002304/0.4539, allocations: 1.203 MB / 478.4 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004211/0.4543, allocations: 245 kB / 478.6 MB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004494/0.4588, allocations: 2.57 MB / 481.2 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.4588, allocations: 16 kB / 481.2 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.4588, allocations: 4 kB / 481.2 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.4589, allocations: 7.969 kB / 481.2 MB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009733/0.4686, allocations: 5.955 MB / 487.1 MB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.4686, allocations: 4 kB / 487.1 MB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.4699, allocations: 291.8 kB / 487.4 MB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000947/0.4709, allocations: 378.1 kB / 487.8 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.471, allocations: 39.98 kB / 487.8 MB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007002/0.478, allocations: 6.823 MB / 494.7 MB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.478, allocations: 4 kB / 494.7 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00577/0.4838, allocations: 3.693 MB / 498.4 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.4849, allocations: 0.506 MB / 498.9 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005132/0.4854, allocations: 39.94 kB / 498.9 MB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.4867, allocations: 87.94 kB / 499 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.487, allocations: 125.1 kB / 499.1 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.4871, allocations: 43.94 kB / 499.2 MB, free: 11.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002747/0.4898, allocations: 1.569 MB / 0.489 GB, free: 10.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4898, allocations: 0 / 0.489 GB, free: 10.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002646/0.4925, allocations: 0.6874 MB / 0.4897 GB, free: 9.648 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 (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003851/0.4929, allocations: 187.1 kB / 0.4898 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003904/0.4968, allocations: 2.347 MB / 0.4921 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4968, allocations: 0 / 0.4921 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.4991, allocations: 1.492 MB / 0.4936 GB, free: 5.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/0.5021, allocations: 0.5834 MB / 0.4942 GB, free: 4.965 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.5159, allocations: 8.41 MB / 0.5024 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002945/0.5189, allocations: 2.677 MB / 0.505 GB, free: 9.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002082/0.521, allocations: 0.5474 MB / 0.5055 GB, free: 9.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/0.5214, allocations: 163.4 kB / 0.5057 GB, free: 9.109 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5214, allocations: 0 / 0.5057 GB, free: 9.109 MB / 430.1 MB Notification: Performance of Templates: time 0.2151/0.7366, allocations: 30.69 MB / 0.5356 GB, free: 143.7 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches