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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 122.5 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 190.6 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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=1000,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=1000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 39.92 kB / 366.8 MB, free: 320 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1199, allocations: 52.15 MB / 419 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01509/0.135, allocations: 11.48 MB / 430.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00747/0.1425, allocations: 3.552 MB / 434 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1444, allocations: 67.69 kB / 434.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002866/0.1473, allocations: 0.893 MB / 435 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.1509, allocations: 0.9708 MB / 435.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.1523, allocations: 443.4 kB / 436.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00574/0.1581, allocations: 3.731 MB / 440.1 MB, free: 6.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003784/0.1618, allocations: 2.092 MB / 442.2 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.1646, allocations: 1.663 MB / 443.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003595/0.1682, allocations: 2.012 MB / 445.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001194/0.1694, allocations: 420 kB / 446.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001754/0.1712, allocations: 0.5037 MB / 446.8 MB, free: 104 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2126/0.3838, allocations: 1.196 MB / 448 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004216/0.388, allocations: 1.94 MB / 449.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008682/0.3967, allocations: 5.556 MB / 455.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3967, allocations: 0 / 455.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3967, allocations: 1.062 kB / 455.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002714/0.397, allocations: 0 / 455.5 MB, free: 12.51 MB / 366.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.0143/0.4113, allocations: 3.907 MB / 459.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.4113, allocations: 9.594 kB / 459.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002615/0.4139, allocations: 411.5 kB / 459.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0055/0.4194, allocations: 2.075 MB / 461.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.4196, allocations: 211.8 kB / 462.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004962/0.4201, allocations: 287 kB / 462.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00699/0.4271, allocations: 3.863 MB / 466.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.733e-05/0.4272, allocations: 2.906 kB / 466.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002895/0.4275, allocations: 122 kB / 466.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.4276, allocations: 124.2 kB / 466.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005663/0.4333, allocations: 3.248 MB / 469.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01881/0.4521, allocations: 11.81 MB / 481.5 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.4555, allocations: 3.546 MB / 485.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.4575, allocations: 1.161 MB / 486.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002628/0.4577, allocations: 124.7 kB / 486.4 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.4578, allocations: 57.94 kB / 486.4 MB, free: 12.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.156e-06/0.4578, allocations: 112 / 486.4 MB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.0158/0.4736, allocations: 7.345 MB / 493.8 MB, free: 7.652 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.372e-05/0.4737, allocations: 67.44 kB / 493.8 MB, free: 7.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/0.4771, allocations: 2.068 MB / 495.9 MB, free: 5.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.4774, allocations: 53.7 kB / 495.9 MB, free: 5.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/0.4789, allocations: 1.4 MB / 497.3 MB, free: 4.457 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007029/0.4796, allocations: 0.5357 MB / 497.9 MB, free: 3.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006978/0.4803, allocations: 351.4 kB / 498.2 MB, free: 3.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4804, allocations: 309.1 kB / 498.5 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.4821, allocations: 0.8627 MB / 499.4 MB, free: 2.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.4841, allocations: 1.368 MB / 0.489 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0034/0.4875, allocations: 2.326 MB / 0.4913 GB, free: 14.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.4875, allocations: 4 kB / 0.4913 GB, free: 14.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006238/0.4937, allocations: 3.264 MB / 0.4945 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.4938, allocations: 12 kB / 0.4945 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.4938, allocations: 16 kB / 0.4945 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002539/0.4963, allocations: 0.8615 MB / 0.4953 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.4976, allocations: 344.7 kB / 0.4957 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02027/0.5179, allocations: 20.59 MB / 0.5158 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/0.52, allocations: 99.89 kB / 0.5159 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.5202, allocations: 73.86 kB / 0.5159 GB, free: 3.773 MB / 414.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.002004/0.5222, allocations: 0.9428 MB / 0.5169 GB, free: 2.844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.5227, allocations: 226.5 kB / 0.5171 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.5276, allocations: 2.617 MB / 0.5196 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.5276, allocations: 15.94 kB / 0.5197 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.5276, allocations: 12 kB / 0.5197 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.5276, allocations: 7.969 kB / 0.5197 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.5384, allocations: 5.858 MB / 0.5254 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.5384, allocations: 4 kB / 0.5254 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.5392, allocations: 199.4 kB / 0.5256 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.5412, allocations: 0.7309 MB / 0.5263 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.5414, allocations: 35.98 kB / 0.5263 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/0.5588, allocations: 18.16 MB / 0.5441 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.5588, allocations: 4.234 kB / 0.5441 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006801/0.5656, allocations: 3.798 MB / 0.5478 GB, free: 1.664 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/0.5672, allocations: 495.5 kB / 0.5483 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003395/0.5675, allocations: 40.05 kB / 0.5483 GB, free: 1.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.5687, allocations: 107.8 kB / 0.5484 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/0.5691, allocations: 142.8 kB / 0.5485 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5692, allocations: 44 kB / 0.5486 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002394/0.5716, allocations: 1.4 MB / 0.5499 GB, free: 15.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5716, allocations: 0 / 0.5499 GB, free: 15.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002916/0.5745, allocations: 0.6601 MB / 0.5506 GB, free: 14.75 MB / 462.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.0004635/0.575, allocations: 221.8 kB / 0.5508 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005437/0.5804, allocations: 3.357 MB / 0.5541 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.5804, allocations: 4.438 kB / 0.5541 GB, free: 11.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003001/0.5834, allocations: 2.145 MB / 0.5562 GB, free: 8.863 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003821/0.5872, allocations: 0.6799 MB / 0.5568 GB, free: 8.188 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.599, allocations: 5.77 MB / 0.5625 GB, free: 2.371 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/0.6015, allocations: 2.245 MB / 0.5647 GB, free: 100 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008005/0.6023, allocations: 143.5 kB / 0.5648 GB, free: 15.95 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6023, allocations: 0 / 0.5648 GB, free: 15.95 MB / 478.1 MB Notification: Performance of Templates: time 0.3837/0.9861, allocations: 188.4 MB / 0.7488 GB, free: 68.68 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.188312734942883]