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.001887/0.001887, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.002224/0.002224, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.447/1.447, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.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.001597/0.001597, allocations: 47.91 kB / 371.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3833, allocations: 52.19 MB / 423.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01714/0.4004, allocations: 11.52 MB / 435.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009403/0.4098, allocations: 3.559 MB / 439 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.4129, allocations: 87.38 kB / 439.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003309/0.4162, allocations: 0.8853 MB / 440 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004513/0.4207, allocations: 0.9747 MB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00187/0.4226, allocations: 455.2 kB / 441.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006964/0.4296, allocations: 3.732 MB / 445.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0039/0.4335, allocations: 1.589 MB / 446.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003273/0.4367, allocations: 1.69 MB / 448.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004128/0.4409, allocations: 2.02 MB / 450.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001358/0.4422, allocations: 420 kB / 450.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.4445, allocations: 0.4998 MB / 451.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.4469, allocations: 1.223 MB / 452.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004366/0.4512, allocations: 1.925 MB / 454.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009679/0.4609, allocations: 5.558 MB / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4609, allocations: 0 / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4609, allocations: 0 / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002471/0.4612, allocations: 3.938 kB / 460 MB, free: 10.36 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.01206/0.4732, allocations: 3.828 MB / 463.9 MB, free: 6.473 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.4733, allocations: 12.03 kB / 463.9 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.4751, allocations: 410.6 kB / 464.3 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005461/0.4806, allocations: 2.001 MB / 466.3 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000259/0.4809, allocations: 214.1 kB / 466.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.4819, allocations: 295.8 kB / 466.8 MB, free: 3.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009683/0.4916, allocations: 3.86 MB / 470.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/0.4917, allocations: 15.94 kB / 470.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005922/0.4923, allocations: 116 kB / 470.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.4924, allocations: 117.5 kB / 470.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007397/0.4998, allocations: 3.258 MB / 474.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02575/0.5256, allocations: 11.65 MB / 485.8 MB, free: 80 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.529, allocations: 1.737 MB / 487.5 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002386/0.5314, allocations: 1.157 MB / 488.7 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002624/0.5316, allocations: 45.28 kB / 488.7 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.5317, allocations: 47.88 kB / 488.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.198e-06/0.5317, allocations: 0 / 488.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01585/0.5476, allocations: 6.539 MB / 495.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.5476, allocations: 68.72 kB / 495.4 MB, free: 6.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004388/0.552, allocations: 2.06 MB / 497.4 MB, free: 4.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002863/0.5523, allocations: 53.7 kB / 497.5 MB, free: 4.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.5537, allocations: 1.405 MB / 498.9 MB, free: 2.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000945/0.5547, allocations: 0.5384 MB / 499.4 MB, free: 2.332 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/0.5558, allocations: 347.4 kB / 499.8 MB, free: 1.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5559, allocations: 305.1 kB / 0.4883 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.5576, allocations: 0.8705 MB / 0.4892 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002036/0.5597, allocations: 1.358 MB / 0.4905 GB, free: 15.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003639/0.5633, allocations: 2.33 MB / 0.4928 GB, free: 12.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/0.5633, allocations: 4 kB / 0.4928 GB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006447/0.5698, allocations: 3.199 MB / 0.4959 GB, free: 9.469 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.5698, allocations: 12 kB / 0.4959 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/0.5699, allocations: 16 kB / 0.4959 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/0.5724, allocations: 0.8448 MB / 0.4968 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.5738, allocations: 343.4 kB / 0.4971 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.5945, allocations: 19.46 MB / 0.5161 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.5963, allocations: 99.94 kB / 0.5162 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/0.5966, allocations: 76.09 kB / 0.5163 GB, free: 3.336 MB / 430.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.001972/0.5986, allocations: 0.9451 MB / 0.5172 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006203/0.5992, allocations: 226.5 kB / 0.5174 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005085/0.6043, allocations: 2.542 MB / 0.5199 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.6043, allocations: 12 kB / 0.5199 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-05/0.6043, allocations: 12 kB / 0.5199 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.6043, allocations: 7.969 kB / 0.5199 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.6167, allocations: 5.753 MB / 0.5255 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.6167, allocations: 4 kB / 0.5255 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008519/0.6176, allocations: 195.6 kB / 0.5257 GB, free: 9.441 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.6197, allocations: 0.7425 MB / 0.5265 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.6198, allocations: 35.98 kB / 0.5265 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2594/0.8792, allocations: 17.13 MB / 0.5432 GB, free: 98.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.8792, allocations: 4.25 kB / 0.5432 GB, free: 98.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004853/0.884, allocations: 3.728 MB / 0.5469 GB, free: 96.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.8852, allocations: 421.2 kB / 0.5473 GB, free: 96.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002798/0.8854, allocations: 31.84 kB / 0.5473 GB, free: 96.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.8865, allocations: 108.2 kB / 0.5474 GB, free: 96.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.8868, allocations: 151.6 kB / 0.5475 GB, free: 96.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.78e-05/0.8868, allocations: 40.56 kB / 0.5476 GB, free: 96.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001697/0.8885, allocations: 1.407 MB / 0.549 GB, free: 96.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8885, allocations: 2.125 kB / 0.549 GB, free: 96.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002095/0.8906, allocations: 0.6595 MB / 0.5496 GB, free: 96.13 MB / 446.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.0003124/0.891, allocations: 200.3 kB / 0.5498 GB, free: 96.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00365/0.8946, allocations: 3.359 MB / 0.5531 GB, free: 94.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.8946, allocations: 3.844 kB / 0.5531 GB, free: 94.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.8966, allocations: 2.139 MB / 0.5552 GB, free: 92.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.8991, allocations: 0.678 MB / 0.5558 GB, free: 92.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.9064, allocations: 5.815 MB / 0.5615 GB, free: 87.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.9078, allocations: 2.245 MB / 0.5637 GB, free: 85.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004835/0.9083, allocations: 147.4 kB / 0.5638 GB, free: 85.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.273e-06/0.9083, allocations: 0 / 0.5638 GB, free: 85.8 MB / 446.1 MB Notification: Performance of Templates: time 0.3812/1.289, allocations: 188.4 MB / 0.7478 GB, free: 191 MB / 0.5294 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.379201859002933]