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.001517/0.001517, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001705/0.001705, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 8.223 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.001516/0.001516, allocations: 43.92 kB / 379 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2138, allocations: 53.38 MB / 432.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01426/0.2281, allocations: 11.53 MB / 444 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007075/0.2351, allocations: 3.606 MB / 447.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.2369, allocations: 87.44 kB / 447.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002628/0.2395, allocations: 0.9008 MB / 448.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003101/0.2426, allocations: 0.9824 MB / 449.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.2439, allocations: 443.3 kB / 450 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005134/0.2491, allocations: 3.758 MB / 453.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002932/0.252, allocations: 1.593 MB / 455.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002638/0.2546, allocations: 1.698 MB / 457 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003304/0.2579, allocations: 2.028 MB / 459 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007706/0.2587, allocations: 420 kB / 459.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.2599, allocations: 0.5037 MB / 460 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001219/0.2611, allocations: 1.215 MB / 461.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.2634, allocations: 1.941 MB / 463.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0063/0.2697, allocations: 5.562 MB / 468.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2698, allocations: 4 kB / 468.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2698, allocations: 0 / 468.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000147/0.2699, allocations: 0 / 468.7 MB, free: 2.48 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.008596/0.2785, allocations: 3.836 MB / 472.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2785, allocations: 15.97 kB / 472.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.2796, allocations: 406.6 kB / 472.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004236/0.2838, allocations: 1.993 MB / 474.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.284, allocations: 218.1 kB / 475.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004984/0.2845, allocations: 283.9 kB / 475.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006742/0.2912, allocations: 3.861 MB / 479.3 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.803e-05/0.2913, allocations: 7.953 kB / 479.3 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.2916, allocations: 120 kB / 479.4 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.2917, allocations: 125.5 kB / 479.5 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005659/0.2974, allocations: 3.254 MB / 482.8 MB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/0.3174, allocations: 11.64 MB / 494.4 MB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/0.32, allocations: 1.751 MB / 496.2 MB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/0.3221, allocations: 1.141 MB / 497.3 MB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002164/0.3223, allocations: 49.28 kB / 497.4 MB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.3224, allocations: 51.88 kB / 497.4 MB, free: 5.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.226e-06/0.3224, allocations: 0 / 497.4 MB, free: 5.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01403/0.3364, allocations: 6.539 MB / 0.4921 GB, free: 14.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.3364, allocations: 68.66 kB / 0.4922 GB, free: 14.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003184/0.3396, allocations: 2.068 MB / 0.4942 GB, free: 12.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/0.3398, allocations: 53.7 kB / 0.4943 GB, free: 12.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.3409, allocations: 1.409 MB / 0.4956 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005023/0.3414, allocations: 0.5345 MB / 0.4962 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000552/0.342, allocations: 351.4 kB / 0.4965 GB, free: 10.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3421, allocations: 301.1 kB / 0.4968 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.3435, allocations: 0.8705 MB / 0.4976 GB, free: 8.941 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.3453, allocations: 1.366 MB / 0.499 GB, free: 7.371 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003246/0.3485, allocations: 2.326 MB / 0.5012 GB, free: 4.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.3485, allocations: 8 kB / 0.5012 GB, free: 4.832 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005737/0.3543, allocations: 3.195 MB / 0.5044 GB, free: 1.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.3543, allocations: 11.94 kB / 0.5044 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.3543, allocations: 16 kB / 0.5044 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/0.3566, allocations: 0.8565 MB / 0.5052 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.3578, allocations: 343.4 kB / 0.5056 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01894/0.3768, allocations: 19.45 MB / 0.5246 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.3783, allocations: 103.8 kB / 0.5247 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.3785, allocations: 72 kB / 0.5247 GB, free: 11.45 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.001574/0.3801, allocations: 0.9344 MB / 0.5256 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003915/0.3804, allocations: 234.5 kB / 0.5259 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00439/0.3848, allocations: 2.53 MB / 0.5283 GB, free: 7.699 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.3848, allocations: 16 kB / 0.5283 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/0.3849, allocations: 15.92 kB / 0.5284 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.3849, allocations: 11.97 kB / 0.5284 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/0.3952, allocations: 5.761 MB / 0.534 GB, free: 1.738 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.3952, allocations: 4 kB / 0.534 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007663/0.396, allocations: 199.6 kB / 0.5342 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/0.3979, allocations: 0.7348 MB / 0.5349 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.398, allocations: 32 kB / 0.5349 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2022/0.6002, allocations: 17.13 MB / 0.5517 GB, free: 85.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.6002, allocations: 6.031 kB / 0.5517 GB, free: 85.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004607/0.6048, allocations: 3.72 MB / 0.5553 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.6058, allocations: 422.1 kB / 0.5557 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.6061, allocations: 31.06 kB / 0.5557 GB, free: 83.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000943/0.607, allocations: 111.5 kB / 0.5559 GB, free: 83.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/0.6073, allocations: 146 kB / 0.556 GB, free: 83.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-05/0.6074, allocations: 46.8 kB / 0.556 GB, free: 83.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00156/0.609, allocations: 1.407 MB / 0.5574 GB, free: 83.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.609, allocations: 3.188 kB / 0.5574 GB, free: 83.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00184/0.6108, allocations: 0.6587 MB / 0.5581 GB, free: 83.2 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.0002914/0.6111, allocations: 195.2 kB / 0.5582 GB, free: 83.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003282/0.6144, allocations: 3.37 MB / 0.5615 GB, free: 81.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6144, allocations: 0 / 0.5615 GB, free: 81.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.6161, allocations: 2.139 MB / 0.5636 GB, free: 79.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.6185, allocations: 0.6835 MB / 0.5643 GB, free: 79.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006712/0.6252, allocations: 5.821 MB / 0.57 GB, free: 74.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.6265, allocations: 2.256 MB / 0.5722 GB, free: 72.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004443/0.627, allocations: 139.4 kB / 0.5723 GB, free: 71.94 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.627, allocations: 3.938 kB / 0.5723 GB, free: 71.94 MB / 446.1 MB Notification: Performance of Templates: time 0.3436/0.9706, allocations: 188.7 MB / 0.7565 GB, free: 179 MB / 0.5294 GB " [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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/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: 15.899290899047628]