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.0008909/0.0008909, allocations: 80.41 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0009951/0.0009951, allocations: 167.2 kB / 25.61 MB, free: 8.902 MB / 18.57 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 0.8957/0.8957, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.499e-05/1.616e-05, allocations: 2.312 kB / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008516/0.008532, allocations: 11.04 MB / 285.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00541/0.01394, allocations: 3.523 MB / 288.8 MB, free: 5.781 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.01512, allocations: 87.44 kB / 288.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.01671, allocations: 0.8304 MB / 289.7 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002016/0.01873, allocations: 1.017 MB / 290.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007457/0.01947, allocations: 447.2 kB / 291.1 MB, free: 3.398 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003281/0.02275, allocations: 3.871 MB / 295 MB, free: 15.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.02465, allocations: 1.553 MB / 296.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.02784, allocations: 2.549 MB / 299.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002313/0.03015, allocations: 1.878 MB / 301 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007448/0.0309, allocations: 412 kB / 301.4 MB, free: 9.055 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006574/0.03155, allocations: 0.492 MB / 301.9 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007796/0.03233, allocations: 1.243 MB / 303.1 MB, free: 7.316 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001123/0.03346, allocations: 1.345 MB / 304.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002506/0.03596, allocations: 3.146 MB / 307.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.03597, allocations: 4 kB / 307.6 MB, free: 2.809 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.03597, allocations: 3.938 kB / 307.6 MB, free: 2.805 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.278e-05/0.03601, allocations: 0 / 307.6 MB, free: 2.805 MB / 282.7 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.003805/0.03981, allocations: 3.895 MB / 311.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.03985, allocations: 12.03 kB / 311.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007847/0.04063, allocations: 0.6314 MB / 312.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.04244, allocations: 1.785 MB / 314 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.04255, allocations: 210.1 kB / 314.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002708/0.04282, allocations: 300.3 kB / 314.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.04505, allocations: 2.342 MB / 316.8 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.0451, allocations: 7.938 kB / 316.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001568/0.04525, allocations: 120 kB / 316.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.775e-05/0.04534, allocations: 121.5 kB / 317 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.04653, allocations: 0.828 MB / 317.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009888/0.05641, allocations: 9.749 MB / 327.6 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.0575, allocations: 1.005 MB / 328.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007916/0.05829, allocations: 0.5973 MB / 329.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001405/0.05843, allocations: 49.28 kB / 329.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.05847, allocations: 54.64 kB / 329.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=136): time 3.888e-06/0.05848, allocations: 0 / 329.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.005542/0.06402, allocations: 3.137 MB / 332.5 MB, free: 9.285 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.06405, allocations: 68.72 kB / 332.5 MB, free: 9.203 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.06541, allocations: 1.613 MB / 334.1 MB, free: 7.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.289e-05/0.06548, allocations: 53.7 kB / 334.2 MB, free: 7.523 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007315/0.06621, allocations: 1.529 MB / 335.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002964/0.06651, allocations: 0.554 MB / 336.3 MB, free: 5.418 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/0.06687, allocations: 372.8 kB / 336.6 MB, free: 5.043 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.06697, allocations: 476.8 kB / 337.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.06725, allocations: 207.8 kB / 337.3 MB, free: 4.371 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/0.06788, allocations: 0.9285 MB / 338.2 MB, free: 3.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.06888, allocations: 1.284 MB / 339.5 MB, free: 1.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.06889, allocations: 4 kB / 339.5 MB, free: 1.586 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002068/0.07096, allocations: 1.695 MB / 341.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.07098, allocations: 12 kB / 341.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.071, allocations: 16 kB / 341.2 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.07221, allocations: 0.5745 MB / 341.8 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006356/0.07284, allocations: 327.5 kB / 342.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1258/0.1987, allocations: 21.29 MB / 363.4 MB, free: 68.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.1999, allocations: 61.11 kB / 363.5 MB, free: 68.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.2, allocations: 62.03 kB / 363.5 MB, free: 68.82 MB / 330.7 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%), (1,2,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.0006548/0.2006, allocations: 275.6 kB / 363.8 MB, free: 68.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003372/0.201, allocations: 271.8 kB / 364.1 MB, free: 68.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.203, allocations: 1.271 MB / 365.4 MB, free: 68.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.203, allocations: 14.66 kB / 365.4 MB, free: 68.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.203, allocations: 10.94 kB / 365.4 MB, free: 68.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.203, allocations: 8.594 kB / 365.4 MB, free: 68.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005988/0.209, allocations: 3.778 MB / 369.2 MB, free: 67.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.209, allocations: 3.438 kB / 369.2 MB, free: 67.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.2094, allocations: 189.2 kB / 369.4 MB, free: 67.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009645/0.2104, allocations: 0.4927 MB / 369.8 MB, free: 67.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.638e-05/0.2104, allocations: 34.7 kB / 369.9 MB, free: 67.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.2154, allocations: 18.65 MB / 388.5 MB, free: 50.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2154, allocations: 7.719 kB / 388.5 MB, free: 50.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.2172, allocations: 1.816 MB / 390.4 MB, free: 49.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000395/0.2176, allocations: 334.8 kB / 390.7 MB, free: 49.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.2177, allocations: 33.12 kB / 390.7 MB, free: 49.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.2182, allocations: 76.03 kB / 390.8 MB, free: 49.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/0.2183, allocations: 132.7 kB / 390.9 MB, free: 49.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.2184, allocations: 33.12 kB / 390.9 MB, free: 49.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005846/0.219, allocations: 0.858 MB / 391.8 MB, free: 49.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.219, allocations: 0 / 391.8 MB, free: 49.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001429/0.2204, allocations: 0.6546 MB / 392.5 MB, free: 49.21 MB / 330.7 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002431/0.2206, allocations: 208.2 kB / 392.7 MB, free: 49.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.2222, allocations: 2.89 MB / 395.6 MB, free: 47.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2222, allocations: 3.812 kB / 395.6 MB, free: 47.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008244/0.223, allocations: 2.237 MB / 397.8 MB, free: 45.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.2243, allocations: 0.6286 MB / 398.4 MB, free: 44.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.229, allocations: 4.875 MB / 403.3 MB, free: 40.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.2296, allocations: 0.7919 MB / 404.1 MB, free: 39.37 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006653/0.2302, allocations: 249.8 kB / 404.3 MB, free: 39.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008691/0.2311, allocations: 0.6501 MB / 405 MB, free: 38.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2311, allocations: 0 / 405 MB, free: 38.47 MB / 330.7 MB Notification: Performance of Templates: time 0.04386/0.275, allocations: 40.87 MB / 445.9 MB, free: 14.26 MB / 346.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.562372860033065]