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.001033/0.001033, allocations: 106.2 kB / 16.92 MB, free: 6.145 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.001099/0.001099, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.327/1.327, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 52.23 kB / 300.6 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09461, allocations: 49.45 MB / 350.1 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01336/0.108, allocations: 11.79 MB / 361.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00742/0.1155, allocations: 3.928 MB / 365.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.1174, allocations: 63.75 kB / 365.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002433/0.1198, allocations: 0.8501 MB / 366.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003319/0.1232, allocations: 0.9822 MB / 367.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001971/0.1252, allocations: 0.5265 MB / 368.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1819/0.3071, allocations: 3.422 MB / 371.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004225/0.3114, allocations: 2.707 MB / 374.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.3142, allocations: 1.532 MB / 375.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.3182, allocations: 1.933 MB / 377.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002458/0.3208, allocations: 408.9 kB / 378.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002767/0.3235, allocations: 0.6487 MB / 378.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002046/0.3256, allocations: 1.143 MB / 380 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.3287, allocations: 1.848 MB / 381.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005848/0.3346, allocations: 5.311 MB / 387.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3346, allocations: 0 / 387.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3346, allocations: 0 / 387.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000152/0.3348, allocations: 0 / 387.1 MB, free: 7.598 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.008058/0.3428, allocations: 3.709 MB / 390.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3429, allocations: 10.09 kB / 390.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.3442, allocations: 433.3 kB / 391.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/0.3473, allocations: 1.901 MB / 393.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3475, allocations: 212.4 kB / 393.4 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003817/0.3479, allocations: 270.5 kB / 393.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004778/0.3526, allocations: 3.526 MB / 397.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.039e-05/0.3527, allocations: 9.562 kB / 397.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.3529, allocations: 109.5 kB / 397.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/0.3531, allocations: 122 kB / 397.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004465/0.3575, allocations: 2.969 MB / 400.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02127/0.3788, allocations: 11.09 MB / 411.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00565/0.3845, allocations: 2.282 MB / 413.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00354/0.3881, allocations: 1.183 MB / 414.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005515/0.3887, allocations: 211.5 kB / 415.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001516/0.3889, allocations: 50.08 kB / 415.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 5.921e-06/0.3889, allocations: 0 / 415.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.03005/0.419, allocations: 7.503 MB / 422.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.4191, allocations: 68.66 kB / 422.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004911/0.424, allocations: 1.979 MB / 424.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.4242, allocations: 53.7 kB / 424.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.4257, allocations: 1.31 MB / 426.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007555/0.4265, allocations: 0.5017 MB / 426.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009004/0.4274, allocations: 330.3 kB / 426.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4276, allocations: 304.2 kB / 427.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002761/0.4304, allocations: 0.8862 MB / 428.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/0.4337, allocations: 1.37 MB / 429.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006208/0.4399, allocations: 2.382 MB / 431.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.695e-05/0.4399, allocations: 4 kB / 431.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.009585/0.4495, allocations: 2.984 MB / 434.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.4496, allocations: 8 kB / 434.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.466e-05/0.4497, allocations: 19.94 kB / 434.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.4509, allocations: 466.5 kB / 435.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4526, allocations: 431.8 kB / 435.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006577/0.4592, allocations: 6.089 MB / 441.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.4613, allocations: 127.4 kB / 442 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/0.4616, allocations: 79.98 kB / 442.1 MB, free: 4.445 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.001769/0.4634, allocations: 0.8542 MB / 442.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005409/0.4639, allocations: 213.5 kB / 443.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/0.4685, allocations: 2.594 MB / 445.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.415e-05/0.4685, allocations: 20.08 kB / 445.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4686, allocations: 7.984 kB / 445.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.4686, allocations: 7.969 kB / 445.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.4793, allocations: 5.645 MB / 451.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.4793, allocations: 4 kB / 451.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.4806, allocations: 285.8 kB / 451.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.482, allocations: 498.1 kB / 452.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/0.4822, allocations: 39.98 kB / 452.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00775/0.49, allocations: 7.675 MB / 459.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.49, allocations: 11.12 kB / 459.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.4964, allocations: 3.839 MB / 463.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.4976, allocations: 482.3 kB / 464.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003833/0.498, allocations: 32 kB / 464.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.4992, allocations: 99.88 kB / 464.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.4995, allocations: 120.9 kB / 464.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.4996, allocations: 47.81 kB / 464.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00218/0.5018, allocations: 1.36 MB / 465.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5018, allocations: 0 / 465.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002317/0.5041, allocations: 0.5859 MB / 466.4 MB, free: 11.52 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.0004698/0.5046, allocations: 221.9 kB / 466.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006098/0.5107, allocations: 3.364 MB / 470 MB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5107, allocations: 0 / 470 MB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.5134, allocations: 1.611 MB / 471.6 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.5161, allocations: 499.4 kB / 472.1 MB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009119/0.5252, allocations: 5.657 MB / 477.8 MB, free: 168 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.5272, allocations: 2.129 MB / 479.9 MB, free: 14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001627/0.5288, allocations: 477 kB / 480.4 MB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.5293, allocations: 135.4 kB / 480.5 MB, free: 13.4 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5293, allocations: 0 / 480.5 MB, free: 13.4 MB / 398.1 MB Notification: Performance of Templates: time 0.05618/0.5855, allocations: 30.93 MB / 0.4994 GB, free: 14.84 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/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