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.001415/0.001415, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001494/0.001494, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 59.91 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2837, allocations: 53.36 MB / 431.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01564/0.2993, allocations: 11.54 MB / 442.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007913/0.3072, allocations: 3.598 MB / 446.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.3092, allocations: 87.38 kB / 446.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002888/0.3121, allocations: 0.9008 MB / 447.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.3155, allocations: 0.9747 MB / 448.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.317, allocations: 451.2 kB / 448.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005639/0.3227, allocations: 3.757 MB / 452.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003345/0.326, allocations: 1.593 MB / 454.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003161/0.3292, allocations: 1.706 MB / 455.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003793/0.333, allocations: 2.012 MB / 457.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001274/0.3342, allocations: 420 kB / 458.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.3361, allocations: 0.5037 MB / 458.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001966/0.3381, allocations: 1.215 MB / 459.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003984/0.342, allocations: 1.945 MB / 461.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008308/0.3504, allocations: 5.574 MB / 467.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.3504, allocations: 0 / 467.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3504, allocations: 4 kB / 467.4 MB, free: 2.418 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001928/0.3506, allocations: 0 / 467.4 MB, free: 2.418 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.00889/0.3594, allocations: 3.835 MB / 471.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.3595, allocations: 8.031 kB / 471.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005762/0.3601, allocations: 405 kB / 471.7 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.3611, allocations: 418.5 kB / 472.1 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.3652, allocations: 2.008 MB / 474.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.3654, allocations: 217.8 kB / 474.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004319/0.3658, allocations: 283.9 kB / 474.6 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006768/0.3726, allocations: 3.857 MB / 478.4 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.603e-05/0.3727, allocations: 7.953 kB / 478.4 MB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/0.373, allocations: 120 kB / 478.6 MB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.3731, allocations: 121.5 kB / 478.7 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00582/0.3789, allocations: 3.254 MB / 481.9 MB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.4014, allocations: 11.65 MB / 493.6 MB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/0.4044, allocations: 1.739 MB / 495.3 MB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/0.4067, allocations: 1.147 MB / 496.5 MB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003387/0.407, allocations: 49.28 kB / 496.5 MB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.728e-05/0.4071, allocations: 55.86 kB / 496.6 MB, free: 4.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.188e-06/0.4071, allocations: 0 / 496.6 MB, free: 4.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01678/0.4239, allocations: 6.536 MB / 0.4913 GB, free: 14.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.4239, allocations: 64.72 kB / 0.4914 GB, free: 14.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/0.4287, allocations: 2.064 MB / 0.4934 GB, free: 12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.4289, allocations: 53.7 kB / 0.4934 GB, free: 11.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.4303, allocations: 1.397 MB / 0.4948 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005894/0.4309, allocations: 0.5384 MB / 0.4953 GB, free: 9.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007506/0.4316, allocations: 351.4 kB / 0.4957 GB, free: 9.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.4318, allocations: 305.1 kB / 0.4959 GB, free: 9.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4334, allocations: 0.8705 MB / 0.4968 GB, free: 8.469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001984/0.4354, allocations: 1.365 MB / 0.4981 GB, free: 6.898 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003579/0.439, allocations: 2.33 MB / 0.5004 GB, free: 4.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.143e-05/0.439, allocations: 7.938 kB / 0.5004 GB, free: 4.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006427/0.4454, allocations: 3.187 MB / 0.5035 GB, free: 1.125 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/0.4454, allocations: 12.5 kB / 0.5035 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/0.4455, allocations: 19.98 kB / 0.5036 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/0.448, allocations: 0.856 MB / 0.5044 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.4493, allocations: 343.4 kB / 0.5047 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/0.4709, allocations: 19.46 MB / 0.5237 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.4728, allocations: 99.83 kB / 0.5238 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/0.4732, allocations: 75.98 kB / 0.5239 GB, free: 10.97 MB / 446.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.002463/0.4756, allocations: 0.9383 MB / 0.5248 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000737/0.4764, allocations: 226.5 kB / 0.525 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005245/0.4816, allocations: 2.538 MB / 0.5275 GB, free: 7.219 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/0.4816, allocations: 16 kB / 0.5275 GB, free: 7.203 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.529e-05/0.4817, allocations: 4 kB / 0.5275 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.4817, allocations: 7.969 kB / 0.5275 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.4937, allocations: 5.765 MB / 0.5332 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.4937, allocations: 8.406 kB / 0.5332 GB, free: 1.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007873/0.4945, allocations: 195.7 kB / 0.5334 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/0.4964, allocations: 0.7303 MB / 0.5341 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.4966, allocations: 35.98 kB / 0.5341 GB, free: 276 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.292/0.7885, allocations: 17.13 MB / 0.5508 GB, free: 85.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/0.7885, allocations: 8.062 kB / 0.5508 GB, free: 85.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005054/0.7936, allocations: 3.73 MB / 0.5545 GB, free: 83.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.7948, allocations: 416.5 kB / 0.5549 GB, free: 83.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.795, allocations: 39.3 kB / 0.5549 GB, free: 83.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009563/0.796, allocations: 103.1 kB / 0.555 GB, free: 83.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.7963, allocations: 151.5 kB / 0.5552 GB, free: 83.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-05/0.7964, allocations: 43.12 kB / 0.5552 GB, free: 83.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.7981, allocations: 1.408 MB / 0.5566 GB, free: 83.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7981, allocations: 0 / 0.5566 GB, free: 83.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002029/0.8001, allocations: 0.6567 MB / 0.5572 GB, free: 83.04 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.004535/0.8047, allocations: 4.373 MB / 0.5615 GB, free: 80.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.8082, allocations: 3.366 MB / 0.5648 GB, free: 78.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.8082, allocations: 1.25 kB / 0.5648 GB, free: 78.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.8101, allocations: 2.145 MB / 0.5669 GB, free: 76.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.8127, allocations: 0.6757 MB / 0.5675 GB, free: 75.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02558/0.8383, allocations: 22.5 MB / 0.5895 GB, free: 52.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/0.8399, allocations: 2.288 MB / 0.5917 GB, free: 50.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00141/0.8414, allocations: 0.4949 MB / 0.5922 GB, free: 49.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.8425, allocations: 1.089 MB / 0.5933 GB, free: 48.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8425, allocations: 0 / 0.5933 GB, free: 48.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/0.9728, allocations: 61.78 MB / 0.6536 GB, free: 3.453 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/17.18, allocations: 11.94 kB / 0.6536 GB, free: 3.441 MB / 462.1 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/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: 19.867648554965854]