Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 100.2 kB / 17.59 MB, free: 5.414 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.001202/0.001202, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.374/1.374, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 46.58 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1145, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01327/0.1279, allocations: 11.42 MB / 362.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007289/0.1352, allocations: 3.544 MB / 365.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.137, allocations: 67.69 kB / 365.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.1396, allocations: 0.8345 MB / 366.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.1429, allocations: 0.9162 MB / 367.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.1443, allocations: 435.4 kB / 367.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1743/0.3186, allocations: 3.728 MB / 371.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004018/0.3227, allocations: 2.866 MB / 374.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.3253, allocations: 1.642 MB / 376.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003884/0.3292, allocations: 1.967 MB / 378.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.3303, allocations: 419 kB / 378.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.3318, allocations: 0.4982 MB / 379.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.3331, allocations: 1.197 MB / 380.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.3354, allocations: 1.937 MB / 382.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.3411, allocations: 5.484 MB / 387.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3411, allocations: 0 / 387.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3411, allocations: 1 kB / 387.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001731/0.3413, allocations: 0 / 387.7 MB, free: 7.129 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.009031/0.3503, allocations: 3.815 MB / 391.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3504, allocations: 9.312 kB / 391.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.3515, allocations: 396.7 kB / 391.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/0.3546, allocations: 1.985 MB / 393.9 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3548, allocations: 213.3 kB / 394.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003755/0.3551, allocations: 284.7 kB / 394.4 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005474/0.3606, allocations: 3.862 MB / 398.2 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.444e-05/0.3607, allocations: 9.438 kB / 398.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.361, allocations: 119.9 kB / 398.3 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.3611, allocations: 125.6 kB / 398.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005087/0.3662, allocations: 3.254 MB / 401.7 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02037/0.3866, allocations: 11.9 MB / 413.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003335/0.3899, allocations: 3.658 MB / 417.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.392, allocations: 1.245 MB / 418.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002784/0.3923, allocations: 126.2 kB / 418.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.3924, allocations: 47.88 kB / 418.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.236e-06/0.3924, allocations: 0 / 418.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01483/0.4072, allocations: 7.32 MB / 426 MB, free: 5.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.4073, allocations: 72.72 kB / 426.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/0.4104, allocations: 2.06 MB / 428.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.4106, allocations: 49.7 kB / 428.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009309/0.4115, allocations: 1.372 MB / 429.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/0.4119, allocations: 0.5049 MB / 430.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005517/0.4125, allocations: 347.2 kB / 430.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.4126, allocations: 305.1 kB / 430.7 MB, free: 420 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.4139, allocations: 0.8666 MB / 431.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/0.4156, allocations: 1.368 MB / 432.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/0.4185, allocations: 2.327 MB / 435.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.4185, allocations: 7.938 kB / 435.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005571/0.4241, allocations: 3.277 MB / 438.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4242, allocations: 10.72 kB / 438.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.4242, allocations: 20 kB / 438.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/0.4265, allocations: 0.8496 MB / 439.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.4278, allocations: 344 kB / 439.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/0.4448, allocations: 20.6 MB / 460.4 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.4469, allocations: 91.83 kB / 460.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/0.4471, allocations: 79.98 kB / 460.5 MB, free: 0.8438 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001732/0.4488, allocations: 0.9409 MB / 461.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004754/0.4493, allocations: 221.4 kB / 461.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.4536, allocations: 2.629 MB / 464.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.4537, allocations: 16 kB / 464.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.4537, allocations: 4 kB / 464.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.4537, allocations: 11.97 kB / 464.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.4638, allocations: 5.902 MB / 470.3 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.4638, allocations: 7.984 kB / 470.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008118/0.4646, allocations: 193.7 kB / 470.5 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.4666, allocations: 0.7502 MB / 471.2 MB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.4667, allocations: 35.98 kB / 471.2 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/0.4816, allocations: 18.15 MB / 489.4 MB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4816, allocations: 4 kB / 489.4 MB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00584/0.4874, allocations: 3.806 MB / 493.2 MB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.4888, allocations: 478.3 kB / 493.7 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003997/0.4892, allocations: 35.94 kB / 493.7 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.4903, allocations: 107.9 kB / 493.8 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003666/0.4907, allocations: 143.7 kB / 493.9 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.522e-05/0.4908, allocations: 47.98 kB / 494 MB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.493, allocations: 1.408 MB / 495.4 MB, free: 12.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 3e-07/0.493, allocations: 0 / 495.4 MB, free: 12.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002779/0.4958, allocations: 0.6562 MB / 496.1 MB, free: 11.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.000435/0.4962, allocations: 212.4 kB / 496.3 MB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006624/0.5029, allocations: 4.242 MB / 0.4888 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.5029, allocations: 7.938 kB / 0.4888 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.5056, allocations: 2.198 MB / 0.4909 GB, free: 4.934 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/0.5091, allocations: 0.6789 MB / 0.4916 GB, free: 4.254 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00999/0.5192, allocations: 5.749 MB / 0.4972 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/0.5212, allocations: 2.249 MB / 0.4994 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.5219, allocations: 143.4 kB / 0.4995 GB, free: 12.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5219, allocations: 0 / 0.4995 GB, free: 12.04 MB / 430.1 MB Notification: Performance of Templates: time 0.3014/0.8233, allocations: 187.8 MB / 0.683 GB, free: 6.781 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches