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.002542/0.002542, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002905/0.002905, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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 1.618/1.618, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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: 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_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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.091e-05/3.317e-05, allocations: 6.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01763/0.01766, allocations: 11.28 MB / 283.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009536/0.0272, allocations: 3.54 MB / 287.2 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002701/0.0299, allocations: 83.44 kB / 287.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.03379, allocations: 0.846 MB / 288.1 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004844/0.03863, allocations: 1.013 MB / 289.1 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.04044, allocations: 443.3 kB / 289.5 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1404/0.1809, allocations: 3.866 MB / 293.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004243/0.1851, allocations: 1.55 MB / 294.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006632/0.1918, allocations: 2.478 MB / 297.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004693/0.1965, allocations: 1.9 MB / 299.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.1981, allocations: 421.2 kB / 299.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003151/0.2013, allocations: 0.4941 MB / 300.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002526/0.2038, allocations: 1.265 MB / 301.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004791/0.2086, allocations: 1.361 MB / 302.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007662/0.2163, allocations: 5.662 MB / 308.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2163, allocations: 0.5312 kB / 308.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2163, allocations: 0.75 kB / 308.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002477/0.2165, allocations: 3.938 kB / 308.5 MB, free: 10.21 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.01057/0.2271, allocations: 4.302 MB / 312.8 MB, free: 7.141 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2271, allocations: 8.031 kB / 312.8 MB, free: 7.133 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001578/0.2287, allocations: 0.6407 MB / 313.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.2324, allocations: 1.913 MB / 315.4 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.2325, allocations: 214.1 kB / 315.6 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004291/0.2329, allocations: 290.3 kB / 315.9 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00523/0.2382, allocations: 3.986 MB / 319.9 MB, free: 16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.379e-05/0.2382, allocations: 7.938 kB / 319.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002892/0.2385, allocations: 123.9 kB / 320 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.2387, allocations: 121.5 kB / 320.1 MB, free: 15.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006053/0.2447, allocations: 2.615 MB / 322.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03142/0.2761, allocations: 13.43 MB / 336.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003208/0.2794, allocations: 1.348 MB / 337.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002103/0.2815, allocations: 0.8763 MB / 338.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002735/0.2817, allocations: 53.28 kB / 338.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.437e-05/0.2818, allocations: 60.09 kB / 338.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=136): time 3.867e-06/0.2818, allocations: 4 kB / 338.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=151): time 0.01388/0.2957, allocations: 4.767 MB / 343.3 MB, free: 8.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.2958, allocations: 68.7 kB / 343.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004232/0.3, allocations: 2.242 MB / 345.6 MB, free: 6.043 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002587/0.3002, allocations: 53.7 kB / 345.6 MB, free: 5.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001732/0.302, allocations: 1.609 MB / 347.2 MB, free: 4.371 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008103/0.3028, allocations: 0.5831 MB / 347.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007782/0.3036, allocations: 425.1 kB / 348.2 MB, free: 3.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002649/0.3038, allocations: 480.8 kB / 348.7 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.305, allocations: 0.5317 MB / 349.2 MB, free: 2.363 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/0.3069, allocations: 1.297 MB / 350.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003635/0.3105, allocations: 2 MB / 352.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/0.3106, allocations: 4 kB / 352.5 MB, free: 14.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005863/0.3164, allocations: 2.463 MB / 355 MB, free: 12.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.3165, allocations: 12 kB / 355 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/0.3165, allocations: 12 kB / 355 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003087/0.3196, allocations: 0.7362 MB / 355.8 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.321, allocations: 340.1 kB / 356.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02252/0.3435, allocations: 22.9 MB / 379 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.3455, allocations: 99.75 kB / 379.1 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.3458, allocations: 76 kB / 379.2 MB, free: 2.762 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%), (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.002082/0.3479, allocations: 0.7896 MB / 379.9 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/0.3486, allocations: 266.7 kB / 380.2 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00425/0.3529, allocations: 1.788 MB / 382 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.061e-05/0.3529, allocations: 19.94 kB / 382 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3529, allocations: 4 kB / 382 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.3529, allocations: 7.969 kB / 382 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/0.3658, allocations: 4.991 MB / 387 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.3658, allocations: 4 kB / 387 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009234/0.3668, allocations: 201.9 kB / 387.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/0.3694, allocations: 0.6027 MB / 387.8 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001758/0.3695, allocations: 35.98 kB / 387.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/0.39, allocations: 19.93 MB / 407.8 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/0.39, allocations: 7.984 kB / 407.8 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006146/0.3962, allocations: 2.576 MB / 410.4 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.3977, allocations: 370.5 kB / 410.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.3981, allocations: 35.98 kB / 410.8 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.3992, allocations: 103.9 kB / 410.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000408/0.3996, allocations: 136.4 kB / 411 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.3997, allocations: 44 kB / 411 MB, free: 1.512 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002438/0.4021, allocations: 1.298 MB / 412.3 MB, free: 228 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4021, allocations: 0 / 412.3 MB, free: 228 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.003167/0.4053, allocations: 0.6524 MB / 413 MB, free: 15.57 MB / 378.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%), (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.0005389/0.4058, allocations: 215.7 kB / 413.2 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006008/0.4118, allocations: 3.486 MB / 416.7 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/0.4118, allocations: 4 kB / 416.7 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003629/0.4155, allocations: 2.491 MB / 419.2 MB, free: 9.098 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/0.4189, allocations: 0.6296 MB / 419.8 MB, free: 8.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.4301, allocations: 5.214 MB / 425 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002296/0.4323, allocations: 1.605 MB / 426.6 MB, free: 1.555 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001645/0.434, allocations: 397.5 kB / 427 MB, free: 1.164 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004333/0.4344, allocations: 131.9 kB / 427.2 MB, free: 1.039 MB / 378.7 MB Notification: Performance of SimCode: time 2.925e-06/0.4344, allocations: 0 / 427.2 MB, free: 1.039 MB / 378.7 MB Notification: Performance of Templates: time 0.1782/0.6127, allocations: 38.22 MB / 465.4 MB, free: 92.27 MB / 378.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/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: 6.337851934018545]