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.0008378/0.0008378, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0008998/0.0008999, allocations: 184.2 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.311/1.311, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 7.938 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1127, allocations: 50.42 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01183/0.1245, allocations: 10.76 MB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007745/0.1323, allocations: 3.474 MB / 366.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.1346, allocations: 63.69 kB / 366.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.1374, allocations: 0.7303 MB / 366.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003158/0.1406, allocations: 0.8508 MB / 367.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1417, allocations: 387.5 kB / 368.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2066/0.3482, allocations: 4.404 MB / 372.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003422/0.3517, allocations: 2.382 MB / 374.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.354, allocations: 1.244 MB / 376.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.3569, allocations: 1.68 MB / 377.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007401/0.3576, allocations: 181.8 kB / 378 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.3589, allocations: 285.3 kB / 378.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.3601, allocations: 0.9144 MB / 379.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003468/0.3636, allocations: 1.644 MB / 380.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009114/0.3727, allocations: 5.168 MB / 386 MB, free: 7.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.3728, allocations: 0 / 386 MB, free: 7.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.3728, allocations: 0 / 386 MB, free: 7.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.3731, allocations: 1.438 kB / 386 MB, free: 7.707 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.01002/0.3832, allocations: 3.221 MB / 389.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.253e-05/0.3832, allocations: 14.28 kB / 389.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002438/0.3857, allocations: 395.6 kB / 389.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004541/0.3903, allocations: 1.986 MB / 391.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.3905, allocations: 214.8 kB / 391.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005951/0.3911, allocations: 283.4 kB / 392.1 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00671/0.3978, allocations: 3.868 MB / 396 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.65e-05/0.3979, allocations: 7.344 kB / 396 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.3982, allocations: 122.2 kB / 396.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.3983, allocations: 119.3 kB / 396.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004714/0.403, allocations: 3.254 MB / 399.5 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02184/0.4249, allocations: 11.97 MB / 411.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003409/0.4283, allocations: 3.657 MB / 415.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002135/0.4305, allocations: 1.239 MB / 416.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002664/0.4308, allocations: 126.4 kB / 416.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.4308, allocations: 51.88 kB / 416.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.945e-06/0.4308, allocations: 0 / 416.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.0165/0.4473, allocations: 7.372 MB / 423.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.4474, allocations: 71.47 kB / 423.9 MB, free: 7.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.4525, allocations: 2.06 MB / 426 MB, free: 5.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/0.4528, allocations: 49.7 kB / 426 MB, free: 5.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.4541, allocations: 1.372 MB / 427.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007446/0.4548, allocations: 0.5108 MB / 427.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003819/0.4552, allocations: 169.6 kB / 428.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4554, allocations: 305.1 kB / 428.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.4573, allocations: 0.8744 MB / 429.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.4595, allocations: 1.365 MB / 430.6 MB, free: 420 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003427/0.4629, allocations: 2.332 MB / 433 MB, free: 13.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.4629, allocations: 4 kB / 433 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005888/0.4688, allocations: 3.275 MB / 436.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.4689, allocations: 12 kB / 436.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/0.4689, allocations: 20 kB / 436.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002482/0.4714, allocations: 0.8487 MB / 437.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.4727, allocations: 350.2 kB / 437.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/0.4896, allocations: 18.84 MB / 456.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/0.4922, allocations: 99.83 kB / 456.4 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003647/0.4926, allocations: 72 kB / 456.5 MB, free: 5.094 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.002704/0.4953, allocations: 0.9424 MB / 457.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008082/0.4961, allocations: 217.4 kB / 457.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005657/0.5018, allocations: 2.632 MB / 460.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.5018, allocations: 15.98 kB / 460.3 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.832e-05/0.5019, allocations: 8 kB / 460.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5019, allocations: 11.16 kB / 460.3 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01408/0.516, allocations: 5.911 MB / 466.2 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/0.516, allocations: 4.109 kB / 466.2 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008432/0.5169, allocations: 201.7 kB / 466.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.5192, allocations: 0.7339 MB / 467.1 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.5194, allocations: 35.98 kB / 467.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01919/0.5386, allocations: 16.75 MB / 483.9 MB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.912e-06/0.5387, allocations: 7.469 kB / 483.9 MB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007282/0.546, allocations: 3.818 MB / 487.8 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/0.5478, allocations: 470.4 kB / 488.2 MB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008283/0.5486, allocations: 35.94 kB / 488.2 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001799/0.5505, allocations: 119.9 kB / 488.4 MB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004377/0.5509, allocations: 137 kB / 488.5 MB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.5511, allocations: 44 kB / 488.5 MB, free: 3.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003578/0.5547, allocations: 1.408 MB / 489.9 MB, free: 2.105 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.5547, allocations: 4 kB / 490 MB, free: 2.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004794/0.5595, allocations: 0.6523 MB / 490.6 MB, free: 1.449 MB / 398.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.0007684/0.5603, allocations: 215 kB / 490.8 MB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006286/0.5666, allocations: 3.448 MB / 494.3 MB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/0.5667, allocations: 4 kB / 494.3 MB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003293/0.57, allocations: 2.198 MB / 496.5 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00609/0.5761, allocations: 0.6426 MB / 497.1 MB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.5898, allocations: 7.049 MB / 0.4923 GB, free: 3.566 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003814/0.5936, allocations: 2.284 MB / 0.4946 GB, free: 1.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002333/0.596, allocations: 0.4909 MB / 0.495 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000657/0.5966, allocations: 135.4 kB / 0.4952 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5967, allocations: 0 / 0.4952 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of Templates: time 0.2553/0.852, allocations: 36.13 MB / 0.5305 GB, free: 145.2 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/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