Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001113/0.001113, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.348/1.348, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 51.03 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09177, allocations: 49.45 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01382/0.1056, allocations: 11.8 MB / 362.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007557/0.1132, allocations: 3.928 MB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.1153, allocations: 63.75 kB / 366.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.1179, allocations: 0.85 MB / 367.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003259/0.1212, allocations: 0.9822 MB / 368.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1227, allocations: 0.5226 MB / 368.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.15/0.2727, allocations: 3.41 MB / 372.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003159/0.2759, allocations: 2.722 MB / 375 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.278, allocations: 1.527 MB / 376.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003129/0.2812, allocations: 1.939 MB / 378.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.2823, allocations: 410 kB / 378.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.2842, allocations: 0.6483 MB / 379.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.2855, allocations: 1.141 MB / 380.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003175/0.2887, allocations: 1.843 MB / 382.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005817/0.2945, allocations: 5.316 MB / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2945, allocations: 1.125 kB / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2946, allocations: 0 / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001757/0.2947, allocations: 0 / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.00926/0.304, allocations: 3.708 MB / 391.5 MB, free: 4.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.3041, allocations: 12.95 kB / 391.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001447/0.3055, allocations: 431.1 kB / 392 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00326/0.3088, allocations: 1.903 MB / 393.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.309, allocations: 207.8 kB / 394.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004638/0.3094, allocations: 274.5 kB / 394.3 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005955/0.3154, allocations: 3.527 MB / 397.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-05/0.3155, allocations: 7.234 kB / 397.9 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.3158, allocations: 107.8 kB / 398 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.3159, allocations: 119.5 kB / 398.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00498/0.3209, allocations: 2.973 MB / 401.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/0.34, allocations: 11.09 MB / 412.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/0.343, allocations: 2.283 MB / 414.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.3451, allocations: 1.185 MB / 415.6 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003272/0.3454, allocations: 210.8 kB / 415.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.3455, allocations: 47.88 kB / 415.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.457e-06/0.3455, allocations: 0 / 415.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01706/0.3625, allocations: 7.496 MB / 423.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3626, allocations: 75.38 kB / 423.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003364/0.366, allocations: 1.977 MB / 425.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002172/0.3662, allocations: 53.7 kB / 425.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009271/0.3672, allocations: 1.305 MB / 426.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005456/0.3677, allocations: 0.5047 MB / 427.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006599/0.3684, allocations: 327.2 kB / 427.6 MB, free: 4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.161e-05/0.3685, allocations: 309.1 kB / 427.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.3701, allocations: 0.8823 MB / 428.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.372, allocations: 1.369 MB / 430.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003497/0.3755, allocations: 2.384 MB / 432.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/0.3755, allocations: 4 kB / 432.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005445/0.381, allocations: 2.982 MB / 435.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.381, allocations: 12 kB / 435.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.381, allocations: 15.94 kB / 435.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.3822, allocations: 458.5 kB / 436 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.384, allocations: 441.2 kB / 436.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/0.3907, allocations: 6.101 MB / 442.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.3928, allocations: 123.8 kB / 442.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003143/0.3931, allocations: 72 kB / 442.7 MB, free: 4.367 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001724/0.3948, allocations: 0.8646 MB / 443.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006863/0.3955, allocations: 213.5 kB / 443.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/0.4003, allocations: 2.588 MB / 446.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/0.4004, allocations: 16 kB / 446.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.4004, allocations: 8 kB / 446.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.4004, allocations: 7.969 kB / 446.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4109, allocations: 5.645 MB / 452.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.4109, allocations: 4 kB / 452.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.4122, allocations: 287 kB / 452.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.4136, allocations: 0.4891 MB / 452.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.4137, allocations: 35.98 kB / 452.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007719/0.4215, allocations: 7.689 MB / 460.6 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4215, allocations: 7.938 kB / 460.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006482/0.428, allocations: 3.831 MB / 464.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.4292, allocations: 482.3 kB / 464.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005579/0.4298, allocations: 39.98 kB / 464.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.4313, allocations: 95.89 kB / 465 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.4316, allocations: 124.6 kB / 465.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.4317, allocations: 39.98 kB / 465.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002433/0.4342, allocations: 1.36 MB / 466.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4342, allocations: 0 / 466.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002387/0.4366, allocations: 0.582 MB / 467.1 MB, free: 11.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.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 (125): * Single equations (assignments): 120 * Array equations: 2 * 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 {(3,16,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000528/0.4371, allocations: 227.9 kB / 467.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.4435, allocations: 3.366 MB / 470.7 MB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4435, allocations: 0 / 470.7 MB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.4464, allocations: 1.616 MB / 472.3 MB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/0.4495, allocations: 499.6 kB / 472.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.4598, allocations: 5.688 MB / 478.5 MB, free: 40 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.462, allocations: 2.104 MB / 480.6 MB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007833/0.4628, allocations: 151.4 kB / 480.7 MB, free: 13.75 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4628, allocations: 0 / 480.7 MB, free: 13.75 MB / 398.1 MB Notification: Performance of Templates: time 0.2413/0.7041, allocations: 75.19 MB / 0.5429 GB, free: 151.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches