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.000894/0.000894, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009499/0.0009499, allocations: 170 kB / 24.91 MB, free: 9.199 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.9321/0.9321, allocations: 177.1 MB / 205.3 MB, free: 5.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.593e-06/1.593e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.071e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01202/0.01204, allocations: 11.1 MB / 284.6 MB, free: 6.102 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007538/0.01958, allocations: 3.656 MB / 288.3 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.02123, allocations: 87.38 kB / 288.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002047/0.02328, allocations: 0.8616 MB / 289.2 MB, free: 1.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002679/0.02595, allocations: 1.017 MB / 290.2 MB, free: 464 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009272/0.02688, allocations: 443.3 kB / 290.7 MB, free: 20 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1263/0.1532, allocations: 3.874 MB / 294.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002377/0.1556, allocations: 1.582 MB / 296.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00404/0.1596, allocations: 2.548 MB / 298.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003009/0.1626, allocations: 1.867 MB / 300.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.1638, allocations: 413 kB / 300.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.1648, allocations: 497.6 kB / 301.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008259/0.1657, allocations: 1.248 MB / 302.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001956/0.1676, allocations: 1.337 MB / 304 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0029/0.1705, allocations: 3.149 MB / 307.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1705, allocations: 3.938 kB / 307.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1705, allocations: 0 / 307.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001658/0.1707, allocations: 4.281 kB / 307.2 MB, free: 11.88 MB / 266.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.003861/0.1745, allocations: 3.564 MB / 310.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1746, allocations: 17.25 kB / 310.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006679/0.1752, allocations: 0.5102 MB / 311.3 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.1767, allocations: 1.372 MB / 312.6 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.071e-05/0.1767, allocations: 212.9 kB / 312.8 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.1769, allocations: 280.4 kB / 313.1 MB, free: 7.691 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.1787, allocations: 2.376 MB / 315.5 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.1787, allocations: 7.953 kB / 315.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.1789, allocations: 122.9 kB / 315.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.384e-05/0.1789, allocations: 125.5 kB / 315.7 MB, free: 5.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.18, allocations: 0.8477 MB / 316.6 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007083/0.187, allocations: 7.716 MB / 324.3 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.188, allocations: 0.9834 MB / 325.3 MB, free: 11.81 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006507/0.1886, allocations: 0.5558 MB / 325.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001321/0.1888, allocations: 53.8 kB / 325.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.1888, allocations: 51.88 kB / 325.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.767e-06/0.1888, allocations: 3.984 kB / 325.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.004968/0.1938, allocations: 3.091 MB / 329 MB, free: 8.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.1938, allocations: 68.66 kB / 329.1 MB, free: 7.996 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009458/0.1947, allocations: 1.343 MB / 330.4 MB, free: 6.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.1948, allocations: 57.7 kB / 330.5 MB, free: 6.848 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.1953, allocations: 1.164 MB / 331.7 MB, free: 5.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002541/0.1955, allocations: 0.5257 MB / 332.2 MB, free: 5.258 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/0.1958, allocations: 329.4 kB / 332.5 MB, free: 4.969 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.913e-05/0.1959, allocations: 313 kB / 332.8 MB, free: 4.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.1962, allocations: 210.2 kB / 333 MB, free: 4.457 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.1967, allocations: 0.6829 MB / 333.7 MB, free: 3.613 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009046/0.1976, allocations: 1.091 MB / 334.8 MB, free: 2.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.1976, allocations: 4 kB / 334.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00172/0.1993, allocations: 1.417 MB / 336.2 MB, free: 1.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.1993, allocations: 12.03 kB / 336.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.1994, allocations: 16 kB / 336.2 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.2005, allocations: 0.5672 MB / 336.8 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006593/0.2011, allocations: 344.2 kB / 337.2 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007481/0.2086, allocations: 15.32 MB / 352.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007186/0.2093, allocations: 63.88 kB / 352.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/0.2094, allocations: 60 kB / 352.6 MB, free: 15.86 MB / 314.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.0005564/0.21, allocations: 224.7 kB / 352.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.2102, allocations: 179.8 kB / 353 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.2115, allocations: 1.104 MB / 354.1 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.2116, allocations: 16 kB / 354.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.2116, allocations: 4 kB / 354.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.2116, allocations: 11.97 kB / 354.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003504/0.2151, allocations: 3.177 MB / 357.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.2151, allocations: 4 kB / 357.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/0.2155, allocations: 194.2 kB / 357.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.2165, allocations: 0.5429 MB / 358 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.955e-05/0.2166, allocations: 35.98 kB / 358.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006011/0.2226, allocations: 13.24 MB / 371.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2226, allocations: 8.094 kB / 371.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.2244, allocations: 1.557 MB / 372.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/0.2249, allocations: 260.6 kB / 373.1 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.225, allocations: 35.98 kB / 373.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.2254, allocations: 71.97 kB / 373.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.2257, allocations: 136 kB / 373.4 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.2257, allocations: 32 kB / 373.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005916/0.2263, allocations: 0.6711 MB / 374.1 MB, free: 9.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2263, allocations: 4 kB / 374.1 MB, free: 9.887 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001597/0.2279, allocations: 0.6523 MB / 374.7 MB, free: 9.234 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.0002799/0.2282, allocations: 182 kB / 374.9 MB, free: 9.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.23, allocations: 2.203 MB / 377.1 MB, free: 6.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-05/0.23, allocations: 29.81 kB / 377.1 MB, free: 6.777 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.231, allocations: 1.646 MB / 378.8 MB, free: 5.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.2324, allocations: 0.6273 MB / 379.4 MB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00559/0.2379, allocations: 4.752 MB / 384.2 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.2385, allocations: 0.685 MB / 384.9 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006047/0.2391, allocations: 249.8 kB / 385.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009319/0.2401, allocations: 0.5654 MB / 385.7 MB, free: 14.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.2401, allocations: 0 / 385.7 MB, free: 14.13 MB / 346.7 MB Notification: Performance of Templates: time 0.04844/0.2885, allocations: 40.13 MB / 425.8 MB, free: 6.773 MB / 378.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 -s gbode -gbm=radauIIA3 -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.5998676172457635]