Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001901/0.001901, allocations: 88.52 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002389/0.002389, allocations: 166.1 kB / 23.96 MB, free: 4.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.704e-05, allocations: 5.375 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.014/0.01403, allocations: 10.06 MB / 335.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008927/0.02295, allocations: 3.421 MB / 338.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.02527, allocations: 85.22 kB / 338.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002732/0.028, allocations: 0.8323 MB / 339.4 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003605/0.03161, allocations: 1.014 MB / 340.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.0329, allocations: 451.2 kB / 340.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005444/0.03834, allocations: 3.89 MB / 344.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.04131, allocations: 1.542 MB / 346.3 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004591/0.0459, allocations: 2.475 MB / 348.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003276/0.04918, allocations: 1.75 MB / 350.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009265/0.0501, allocations: 424 kB / 351 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.05138, allocations: 0.4958 MB / 351.5 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.05271, allocations: 1.243 MB / 352.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.0547, allocations: 1.345 MB / 354 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006375/0.06108, allocations: 5.628 MB / 359.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.06108, allocations: 4 kB / 359.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.06108, allocations: 0 / 359.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001362/0.06122, allocations: 0 / 359.7 MB, free: 2.266 MB / 318.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.008505/0.06972, allocations: 3.805 MB / 363.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.06977, allocations: 15.98 kB / 363.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.07086, allocations: 406.6 kB / 363.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003835/0.07469, allocations: 2.004 MB / 365.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.07488, allocations: 218.1 kB / 366.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004488/0.07533, allocations: 288.2 kB / 366.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006867/0.08219, allocations: 4.163 MB / 370.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.075e-05/0.08226, allocations: 11.95 kB / 370.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.08256, allocations: 112 kB / 370.7 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.0827, allocations: 125.5 kB / 370.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005826/0.08853, allocations: 3.254 MB / 374.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.1091, allocations: 10.34 MB / 384.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.1119, allocations: 1.737 MB / 386.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002267/0.1142, allocations: 1.149 MB / 387.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.1144, allocations: 45.28 kB / 387.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.134e-05/0.1145, allocations: 59.81 kB / 387.4 MB, free: 6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 4.078e-06/0.1145, allocations: 0 / 387.4 MB, free: 6 MB / 350.1 MB Notification: Performance of matching and sorting (n=151): time 0.01502/0.1295, allocations: 6.504 MB / 393.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.1296, allocations: 68.72 kB / 394 MB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002968/0.1325, allocations: 1.904 MB / 395.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001583/0.1327, allocations: 57.64 kB / 395.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.1339, allocations: 1.408 MB / 397.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/0.1343, allocations: 0.5267 MB / 397.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005813/0.1349, allocations: 343.4 kB / 398.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1351, allocations: 309.1 kB / 398.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.1365, allocations: 0.8627 MB / 399.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.1384, allocations: 1.366 MB / 400.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/0.1418, allocations: 2.33 MB / 403 MB, free: 5.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.1418, allocations: 4 kB / 403 MB, free: 5.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006217/0.148, allocations: 3.18 MB / 406.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.148, allocations: 14.81 kB / 406.2 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/0.1481, allocations: 16 kB / 406.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002579/0.1507, allocations: 0.8564 MB / 407.1 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.152, allocations: 343.4 kB / 407.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/0.1716, allocations: 19.09 MB / 426.5 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.1733, allocations: 99.81 kB / 426.6 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.1735, allocations: 76 kB / 426.7 MB, free: 12.96 MB / 398.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.001837/0.1753, allocations: 0.9344 MB / 427.6 MB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004467/0.1758, allocations: 210.7 kB / 427.9 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004779/0.1805, allocations: 2.537 MB / 430.4 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.727e-05/0.1806, allocations: 16 kB / 430.4 MB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.1806, allocations: 8 kB / 430.4 MB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.1806, allocations: 7.969 kB / 430.4 MB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00965/0.1902, allocations: 5.123 MB / 435.5 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.1903, allocations: 4 kB / 435.5 MB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/0.1911, allocations: 195.8 kB / 435.7 MB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.1932, allocations: 0.7342 MB / 436.5 MB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.1933, allocations: 36 kB / 436.5 MB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0172/0.2105, allocations: 16.81 MB / 453.3 MB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-05/0.2105, allocations: 11.92 kB / 453.3 MB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/0.2171, allocations: 3.7 MB / 457 MB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.2182, allocations: 402.5 kB / 457.4 MB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004052/0.2186, allocations: 35.98 kB / 457.5 MB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.2198, allocations: 103.9 kB / 457.6 MB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003507/0.2201, allocations: 148.9 kB / 457.7 MB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.2202, allocations: 44 kB / 457.7 MB, free: 12.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002305/0.2225, allocations: 1.267 MB / 459 MB, free: 11.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2225, allocations: 0 / 459 MB, free: 11.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002508/0.225, allocations: 0.6562 MB / 459.7 MB, free: 10.66 MB / 430.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.0005104/0.2256, allocations: 197.7 kB / 459.9 MB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005826/0.2314, allocations: 3.372 MB / 463.2 MB, free: 6.945 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.2314, allocations: 0 / 463.2 MB, free: 6.945 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003246/0.2346, allocations: 2.148 MB / 465.4 MB, free: 4.668 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003914/0.2386, allocations: 0.6043 MB / 466 MB, free: 4.074 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1867/0.4252, allocations: 5.63 MB / 471.6 MB, free: 123.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.4279, allocations: 1.737 MB / 473.4 MB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001736/0.4296, allocations: 472.8 kB / 473.8 MB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.43, allocations: 128.9 kB / 473.9 MB, free: 123 MB / 430.1 MB Notification: Performance of SimCode: time 1.372e-06/0.43, allocations: 4.219 kB / 473.9 MB, free: 123 MB / 430.1 MB Notification: Performance of Templates: time 0.05579/0.4858, allocations: 37.91 MB / 0.4999 GB, free: 97.66 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.9611051715910435]