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.001821/0.001821, allocations: 111.1 kB / 20.44 MB, free: 1.203 MB / 14.72 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.001517/0.001517, allocations: 207.1 kB / 23.72 MB, free: 4.184 MB / 14.72 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.836 MB / 206.1 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 0.001922/0.001922, allocations: 47.94 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2656, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01458/0.2802, allocations: 10.05 MB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007765/0.288, allocations: 3.404 MB / 445.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.29, allocations: 91.44 kB / 445.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002701/0.2927, allocations: 0.819 MB / 446 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.2959, allocations: 0.9825 MB / 446.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.2973, allocations: 451.3 kB / 447.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005707/0.303, allocations: 3.748 MB / 451.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00304/0.3061, allocations: 1.542 MB / 452.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.3089, allocations: 1.706 MB / 454.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003548/0.3125, allocations: 1.946 MB / 456.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001063/0.3136, allocations: 420 kB / 456.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.3151, allocations: 0.496 MB / 457.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.3165, allocations: 1.215 MB / 458.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00216/0.3187, allocations: 1.572 MB / 460 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006316/0.325, allocations: 5.601 MB / 465.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.325, allocations: 0 / 465.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.325, allocations: 0 / 465.6 MB, free: 4.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001452/0.3252, allocations: 0 / 465.6 MB, free: 4.539 MB / 366.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.00795/0.3331, allocations: 3.836 MB / 469.5 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.3332, allocations: 8.031 kB / 469.5 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.3342, allocations: 414.5 kB / 469.9 MB, free: 240 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004141/0.3384, allocations: 2.005 MB / 471.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.3385, allocations: 218.1 kB / 472.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004658/0.339, allocations: 283.9 kB / 472.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006971/0.346, allocations: 4.162 MB / 476.5 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.053e-05/0.3461, allocations: 7.953 kB / 476.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002698/0.3463, allocations: 124 kB / 476.7 MB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.3465, allocations: 117.5 kB / 476.8 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005793/0.3523, allocations: 3.246 MB / 480 MB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/0.3706, allocations: 10.34 MB / 490.4 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.3733, allocations: 1.734 MB / 492.1 MB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002114/0.3754, allocations: 1.153 MB / 493.2 MB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002059/0.3756, allocations: 49.28 kB / 493.3 MB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/0.3756, allocations: 47.88 kB / 493.3 MB, free: 8.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.907e-06/0.3756, allocations: 0 / 493.3 MB, free: 8.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01387/0.3895, allocations: 6.504 MB / 499.8 MB, free: 1.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/0.3896, allocations: 68.72 kB / 499.9 MB, free: 1.629 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002974/0.3925, allocations: 1.908 MB / 0.4901 GB, free: 15.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.3927, allocations: 53.7 kB / 0.4901 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/0.3938, allocations: 1.412 MB / 0.4915 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000499/0.3943, allocations: 0.5307 MB / 0.492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005521/0.3949, allocations: 351.4 kB / 0.4923 GB, free: 13.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.395, allocations: 305.1 kB / 0.4926 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.3965, allocations: 0.8705 MB / 0.4935 GB, free: 12.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.3983, allocations: 1.369 MB / 0.4948 GB, free: 10.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.4016, allocations: 2.326 MB / 0.4971 GB, free: 8.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.4016, allocations: 4 kB / 0.4971 GB, free: 8.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005786/0.4074, allocations: 3.191 MB / 0.5002 GB, free: 4.832 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.4074, allocations: 12 kB / 0.5002 GB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.4074, allocations: 16 kB / 0.5002 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/0.4097, allocations: 0.8409 MB / 0.5011 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.4109, allocations: 343.4 kB / 0.5014 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/0.4298, allocations: 19.13 MB / 0.5201 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.4315, allocations: 95.81 kB / 0.5202 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.4317, allocations: 76 kB / 0.5202 GB, free: 15.17 MB / 446.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.001724/0.4334, allocations: 0.9326 MB / 0.5211 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004254/0.4338, allocations: 214.7 kB / 0.5213 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004629/0.4384, allocations: 2.532 MB / 0.5238 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.4385, allocations: 12 kB / 0.5238 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.4385, allocations: 8 kB / 0.5238 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.4385, allocations: 7.969 kB / 0.5238 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009832/0.4483, allocations: 5.122 MB / 0.5288 GB, free: 6.145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.4483, allocations: 4 kB / 0.5289 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/0.4491, allocations: 196.2 kB / 0.529 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001885/0.451, allocations: 0.7458 MB / 0.5298 GB, free: 5.172 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.512e-05/0.4511, allocations: 32 kB / 0.5298 GB, free: 5.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2154/0.6665, allocations: 16.81 MB / 0.5462 GB, free: 90.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.6665, allocations: 6.594 kB / 0.5462 GB, free: 90.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005686/0.6722, allocations: 3.709 MB / 0.5498 GB, free: 88.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.6734, allocations: 401.8 kB / 0.5502 GB, free: 88.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/0.6736, allocations: 31.5 kB / 0.5503 GB, free: 88.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009718/0.6746, allocations: 108.5 kB / 0.5504 GB, free: 88.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.675, allocations: 144.5 kB / 0.5505 GB, free: 88.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.675, allocations: 50.27 kB / 0.5505 GB, free: 88.54 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001637/0.6767, allocations: 1.266 MB / 0.5518 GB, free: 88.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6767, allocations: 0 / 0.5518 GB, free: 88.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002244/0.6789, allocations: 0.6578 MB / 0.5524 GB, free: 88.02 MB / 446.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.0003547/0.6793, allocations: 211.2 kB / 0.5526 GB, free: 87.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003609/0.6829, allocations: 3.36 MB / 0.5559 GB, free: 85.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6829, allocations: 0 / 0.5559 GB, free: 85.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.6847, allocations: 2.14 MB / 0.558 GB, free: 84.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00244/0.6872, allocations: 0.6117 MB / 0.5586 GB, free: 83.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006758/0.6939, allocations: 5.769 MB / 0.5642 GB, free: 78.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/0.6953, allocations: 1.732 MB / 0.5659 GB, free: 77.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001067/0.6964, allocations: 483.3 kB / 0.5664 GB, free: 76.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.6967, allocations: 125.8 kB / 0.5665 GB, free: 76.55 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6967, allocations: 4 kB / 0.5665 GB, free: 76.55 MB / 446.1 MB Notification: Performance of Templates: time 0.05166/0.7484, allocations: 41.7 MB / 0.6072 GB, free: 35.54 MB / 446.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] 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.00565579906106]