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.0008632/0.0008631, allocations: 93.88 kB / 16.65 MB, free: 6.586 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.0009774/0.0009776, allocations: 187.3 kB / 17.57 MB, free: 6.199 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.312/1.312, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003392, allocations: 11.94 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1123, allocations: 50.42 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01244/0.1248, allocations: 11.12 MB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007626/0.1325, allocations: 3.839 MB / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.1342, allocations: 67.69 kB / 366.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.1365, allocations: 0.7383 MB / 367.6 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003444/0.1399, allocations: 0.8936 MB / 368.5 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.1416, allocations: 474.8 kB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2126/0.3541, allocations: 3.83 MB / 372.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003204/0.3574, allocations: 2.252 MB / 375.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002408/0.3598, allocations: 1.17 MB / 376.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003546/0.3634, allocations: 1.635 MB / 377.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008554/0.3643, allocations: 171.2 kB / 378 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.3662, allocations: 434 kB / 378.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.3676, allocations: 0.8683 MB / 379.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002968/0.3706, allocations: 1.552 MB / 380.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006873/0.3775, allocations: 5.033 MB / 385.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3775, allocations: 0 / 385.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3775, allocations: 0 / 385.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00019/0.3777, allocations: 4 kB / 385.9 MB, free: 8.027 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.01001/0.3877, allocations: 3.16 MB / 389.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.3878, allocations: 8.969 kB / 389.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002338/0.3901, allocations: 436.1 kB / 389.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003552/0.3937, allocations: 1.902 MB / 391.4 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.3939, allocations: 212.1 kB / 391.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/0.3943, allocations: 270.8 kB / 391.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005976/0.4003, allocations: 3.544 MB / 395.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-05/0.4004, allocations: 2.031 kB / 395.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.4006, allocations: 113.1 kB / 395.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/0.4008, allocations: 124.1 kB / 395.7 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005055/0.4058, allocations: 3.004 MB / 398.7 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.4263, allocations: 11.17 MB / 409.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.4294, allocations: 2.299 MB / 412.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002127/0.4316, allocations: 1.199 MB / 413.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003256/0.4319, allocations: 207.5 kB / 413.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.432, allocations: 51.88 kB / 413.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 3.226e-06/0.432, allocations: 0 / 413.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01853/0.4505, allocations: 7.664 MB / 421.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.4506, allocations: 72.66 kB / 421.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003701/0.4543, allocations: 1.975 MB / 423.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002572/0.4546, allocations: 49.7 kB / 423.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.4557, allocations: 1.313 MB / 424.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006027/0.4563, allocations: 0.5023 MB / 425.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.4565, allocations: 153 kB / 425.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.451e-05/0.4566, allocations: 309.1 kB / 425.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.4583, allocations: 0.9018 MB / 426.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.4603, allocations: 1.382 MB / 427.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.4639, allocations: 2.413 MB / 430.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.464, allocations: 8 kB / 430.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00577/0.4698, allocations: 3.014 MB / 433.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.4698, allocations: 15.38 kB / 433.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.4699, allocations: 19.94 kB / 433.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.4711, allocations: 461.2 kB / 433.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.4728, allocations: 438.5 kB / 434.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006824/0.4796, allocations: 5.588 MB / 439.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/0.4823, allocations: 131.8 kB / 440 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003756/0.4827, allocations: 79.55 kB / 440 MB, free: 7.215 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.00233/0.4851, allocations: 0.8475 MB / 440.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007877/0.4859, allocations: 209.5 kB / 441.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005226/0.4911, allocations: 2.621 MB / 443.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/0.4912, allocations: 23.94 kB / 443.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/0.4912, allocations: 4 kB / 443.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/0.4912, allocations: 7.969 kB / 443.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.5031, allocations: 5.687 MB / 449.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.5032, allocations: 4 kB / 449.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.5045, allocations: 290.4 kB / 449.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001591/0.5061, allocations: 497.5 kB / 450.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/0.5063, allocations: 47.97 kB / 450.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008482/0.5148, allocations: 7.059 MB / 457.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.5148, allocations: 4 kB / 457.3 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007876/0.5227, allocations: 3.882 MB / 461.2 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5242, allocations: 482.4 kB / 461.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00079/0.525, allocations: 43.92 kB / 461.7 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/0.5268, allocations: 107.9 kB / 461.8 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/0.5271, allocations: 120.5 kB / 461.9 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.5272, allocations: 43.98 kB / 462 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002725/0.53, allocations: 1.356 MB / 463.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.53, allocations: 0 / 463.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002627/0.5326, allocations: 0.5884 MB / 463.9 MB, free: 14.8 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.0005701/0.5332, allocations: 236.2 kB / 464.1 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004647/0.5379, allocations: 2.627 MB / 466.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5379, allocations: 0 / 466.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002769/0.5406, allocations: 1.627 MB / 468.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004077/0.5447, allocations: 474.3 kB / 468.9 MB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.5571, allocations: 6.978 MB / 475.8 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/0.5604, allocations: 2.132 MB / 478 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002172/0.5626, allocations: 476.9 kB / 478.4 MB, free: 100 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007198/0.5633, allocations: 135.5 kB / 478.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5634, allocations: 0 / 478.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of Templates: time 0.06416/0.6275, allocations: 29.18 MB / 0.4959 GB, free: 3.086 MB / 414.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