Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 84.47 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 164.2 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 3.938 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.149e-05, allocations: 6.281 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01281/0.01284, allocations: 10.07 MB / 335.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008381/0.02122, allocations: 3.409 MB / 338.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002534/0.02375, allocations: 88.84 kB / 338.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002865/0.02662, allocations: 0.8364 MB / 339.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003845/0.03046, allocations: 1.009 MB / 340.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.03188, allocations: 444.8 kB / 340.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005375/0.03726, allocations: 3.882 MB / 344.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00297/0.04023, allocations: 1.546 MB / 346.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004378/0.04461, allocations: 2.468 MB / 348.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003338/0.04794, allocations: 1.75 MB / 350.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.04897, allocations: 416 kB / 351 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.05065, allocations: 0.4959 MB / 351.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.05239, allocations: 1.25 MB / 352.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.0548, allocations: 1.337 MB / 354.1 MB, free: 8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006155/0.06095, allocations: 5.632 MB / 359.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.06096, allocations: 0 / 359.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.06096, allocations: 0 / 359.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001071/0.06106, allocations: 0 / 359.7 MB, free: 2.352 MB / 318.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.007769/0.06883, allocations: 3.805 MB / 363.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.06888, allocations: 8.031 kB / 363.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.06991, allocations: 406.6 kB / 363.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003888/0.0738, allocations: 2.008 MB / 365.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.07399, allocations: 222.1 kB / 366.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000446/0.07444, allocations: 284.3 kB / 366.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006884/0.08132, allocations: 4.17 MB / 370.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-05/0.08139, allocations: 7.953 kB / 370.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.08168, allocations: 124 kB / 370.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.08182, allocations: 117.5 kB / 370.8 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006599/0.08842, allocations: 3.246 MB / 374.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02135/0.1098, allocations: 10.34 MB / 384.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.1129, allocations: 1.745 MB / 386.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002437/0.1153, allocations: 1.149 MB / 387.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.1155, allocations: 45.28 kB / 387.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/0.1156, allocations: 51.88 kB / 387.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 3.486e-06/0.1156, allocations: 112 / 387.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=151): time 0.01556/0.1311, allocations: 6.511 MB / 393.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/0.1312, allocations: 68.72 kB / 394 MB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/0.1348, allocations: 1.904 MB / 395.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.1349, allocations: 53.7 kB / 395.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.1363, allocations: 1.412 MB / 397.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005331/0.1369, allocations: 0.5306 MB / 397.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006341/0.1375, allocations: 343.4 kB / 398.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1377, allocations: 305.1 kB / 398.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.1393, allocations: 0.8666 MB / 399.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/0.1415, allocations: 1.369 MB / 400.7 MB, free: 8.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00371/0.1452, allocations: 2.326 MB / 403.1 MB, free: 5.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/0.1452, allocations: 4 kB / 403.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006488/0.1517, allocations: 3.18 MB / 406.3 MB, free: 2.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.1517, allocations: 12 kB / 406.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.1518, allocations: 12 kB / 406.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.1542, allocations: 0.8525 MB / 407.1 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.1555, allocations: 343.4 kB / 407.5 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02044/0.1759, allocations: 19.1 MB / 426.6 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001728/0.1776, allocations: 103.8 kB / 426.7 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002718/0.1779, allocations: 72 kB / 426.7 MB, free: 13.04 MB / 398.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.002031/0.1799, allocations: 0.9335 MB / 427.7 MB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006448/0.1806, allocations: 214.7 kB / 427.9 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005218/0.1858, allocations: 2.533 MB / 430.4 MB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.1858, allocations: 15.94 kB / 430.4 MB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-05/0.1859, allocations: 8 kB / 430.4 MB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/0.1859, allocations: 7.969 kB / 430.4 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.1981, allocations: 5.115 MB / 435.6 MB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.1981, allocations: 4 kB / 435.6 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008563/0.199, allocations: 195.7 kB / 435.8 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002071/0.201, allocations: 0.7388 MB / 436.5 MB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.2012, allocations: 35.94 kB / 436.5 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01743/0.2186, allocations: 16.82 MB / 453.3 MB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.2186, allocations: 7.938 kB / 453.4 MB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006663/0.2253, allocations: 3.696 MB / 457.1 MB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.2266, allocations: 398.5 kB / 457.4 MB, free: 13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/0.2271, allocations: 40.09 kB / 457.5 MB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/0.2285, allocations: 103.8 kB / 457.6 MB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004012/0.2289, allocations: 148.9 kB / 457.7 MB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.2291, allocations: 48 kB / 457.8 MB, free: 12.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002625/0.2317, allocations: 1.267 MB / 459 MB, free: 11.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2317, allocations: 0 / 459 MB, free: 11.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002962/0.2347, allocations: 0.66 MB / 459.7 MB, free: 10.75 MB / 430.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.000534/0.2352, allocations: 206.9 kB / 459.9 MB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005746/0.2409, allocations: 3.354 MB / 463.3 MB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/0.241, allocations: 8.125 kB / 463.3 MB, free: 7.031 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003338/0.2443, allocations: 2.147 MB / 465.4 MB, free: 4.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003917/0.2482, allocations: 0.6045 MB / 466 MB, free: 4.156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1863/0.4346, allocations: 5.629 MB / 471.6 MB, free: 123.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00281/0.4374, allocations: 1.735 MB / 473.4 MB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001949/0.4393, allocations: 475.5 kB / 473.8 MB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000379/0.4397, allocations: 131.4 kB / 474 MB, free: 123.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4397, allocations: 2.812 kB / 474 MB, free: 123.2 MB / 430.1 MB Notification: Performance of Templates: time 0.06331/0.503, allocations: 37.93 MB / 0.4999 GB, free: 97.91 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.890653990209103]