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.0008017/0.0008017, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001098/0.0019, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006391/0.0006391, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009388/0.001578, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8451/0.8451, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1558/1.001, allocations: 52.49 MB / 238.5 MB, free: 7.652 MB / 234.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 239.8 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.214e-05/1.405e-05, allocations: 2.312 kB / 239.8 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007994/0.008008, allocations: 11.13 MB / 250.9 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004389/0.0124, allocations: 3.636 MB / 254.5 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005771/0.01297, allocations: 87.44 kB / 254.6 MB, free: 7.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.01408, allocations: 0.8538 MB / 255.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001301/0.01538, allocations: 1.017 MB / 256.5 MB, free: 5.609 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004878/0.01587, allocations: 439.3 kB / 256.9 MB, free: 5.18 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002389/0.01826, allocations: 3.895 MB / 260.8 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.01956, allocations: 1.585 MB / 262.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.02169, allocations: 2.745 MB / 265.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00152/0.02321, allocations: 1.863 MB / 267 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004015/0.02361, allocations: 412 kB / 267.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006095/0.02422, allocations: 0.492 MB / 267.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006035/0.02482, allocations: 1.013 MB / 268.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008599/0.02568, allocations: 1.107 MB / 270 MB, free: 7.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00207/0.02775, allocations: 2.94 MB / 273 MB, free: 5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.02776, allocations: 4 kB / 273 MB, free: 4.996 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.02776, allocations: 0 / 273 MB, free: 4.996 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.02781, allocations: 0 / 273 MB, free: 4.996 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.003587/0.0314, allocations: 4.271 MB / 277.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.961e-05/0.03142, allocations: 8.031 kB / 277.2 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000713/0.03214, allocations: 0.5797 MB / 277.8 MB, free: 72 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.03363, allocations: 1.376 MB / 279.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.03373, allocations: 218.1 kB / 279.4 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000325/0.03406, allocations: 288.3 kB / 279.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.03608, allocations: 2.366 MB / 282.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.803e-05/0.03613, allocations: 7.984 kB / 282.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/0.0363, allocations: 120 kB / 282.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.161e-05/0.03638, allocations: 129.5 kB / 282.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.03746, allocations: 0.8399 MB / 283.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/0.04456, allocations: 7.762 MB / 290.9 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008991/0.04546, allocations: 0.9755 MB / 291.9 MB, free: 1.445 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006428/0.0461, allocations: 0.5555 MB / 292.4 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.04623, allocations: 53.28 kB / 292.5 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.04626, allocations: 51.81 kB / 292.5 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.015e-06/0.04626, allocations: 3.938 kB / 292.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.004545/0.0508, allocations: 3.136 MB / 295.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.05084, allocations: 68.72 kB / 295.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008725/0.05171, allocations: 1.333 MB / 297.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.05177, allocations: 49.7 kB / 297.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004487/0.05222, allocations: 1.157 MB / 298.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.05246, allocations: 0.5422 MB / 298.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.05275, allocations: 323.2 kB / 299.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.965e-05/0.05281, allocations: 305.1 kB / 299.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.05308, allocations: 218.7 kB / 299.7 MB, free: 9.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004371/0.05351, allocations: 0.6783 MB / 300.3 MB, free: 8.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009495/0.05446, allocations: 1.152 MB / 301.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.05447, allocations: 4 kB / 301.5 MB, free: 7.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001577/0.05605, allocations: 1.407 MB / 302.9 MB, free: 5.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.05607, allocations: 12.5 kB / 302.9 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.05608, allocations: 16 kB / 302.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.05719, allocations: 0.5791 MB / 303.5 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.05784, allocations: 367.5 kB / 303.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00669/0.06453, allocations: 15.3 MB / 319.2 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.06502, allocations: 59.94 kB / 319.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.563e-05/0.0651, allocations: 60 kB / 319.3 MB, free: 4.363 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.0003604/0.06546, allocations: 226.3 kB / 319.5 MB, free: 4.133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.06565, allocations: 179.8 kB / 319.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.06687, allocations: 1.108 MB / 320.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.06688, allocations: 12 kB / 320.8 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.06689, allocations: 8 kB / 320.8 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.0669, allocations: 7.969 kB / 320.8 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.07006, allocations: 3.17 MB / 324 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.07006, allocations: 4.469 kB / 324 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.07049, allocations: 215.7 kB / 324.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000324/0.07081, allocations: 258.5 kB / 324.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009408/0.07175, allocations: 0.5575 MB / 325 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/0.0718, allocations: 35.94 kB / 325.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005541/0.07734, allocations: 13.23 MB / 338.3 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.07735, allocations: 11.98 kB / 338.3 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1064/0.1838, allocations: 1.56 MB / 339.9 MB, free: 66.7 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002692/0.1841, allocations: 33.84 kB / 339.9 MB, free: 66.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005012/0.1846, allocations: 76.69 kB / 340 MB, free: 66.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.1848, allocations: 128.2 kB / 340.1 MB, free: 66.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.1849, allocations: 34.56 kB / 340.1 MB, free: 66.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007126/0.1856, allocations: 0.674 MB / 340.8 MB, free: 66.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1856, allocations: 1.062 kB / 340.8 MB, free: 66.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001447/0.187, allocations: 0.65 MB / 341.4 MB, free: 66.65 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.0002492/0.1873, allocations: 185.3 kB / 341.6 MB, free: 66.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.1887, allocations: 2.226 MB / 343.9 MB, free: 65.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.379e-05/0.1888, allocations: 34.34 kB / 343.9 MB, free: 65.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008813/0.1897, allocations: 1.729 MB / 345.6 MB, free: 64.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.1918, allocations: 6.492 MB / 352.1 MB, free: 57.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/0.2095, allocations: 4.906 MB / 357 MB, free: 55.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.21, allocations: 0.6864 MB / 357.7 MB, free: 55.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005697/0.2106, allocations: 250.9 kB / 357.9 MB, free: 55.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008024/0.2114, allocations: 0.5636 MB / 358.5 MB, free: 55.12 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.2114, allocations: 0 / 358.5 MB, free: 55.12 MB / 330.7 MB Notification: Performance of Templates: time 0.04741/0.2588, allocations: 42 MB / 400.5 MB, free: 20.16 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.251029083505273]