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.001577/0.001577, allocations: 115.1 kB / 18.45 MB, free: 4.566 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.001791/0.001791, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.522/1.522, allocations: 230.6 MB / 254.8 MB, free: 15.22 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.001533/0.001533, allocations: 47.94 kB / 374.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.118, allocations: 53.34 MB / 427.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01515/0.1331, allocations: 11.49 MB / 439 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007913/0.141, allocations: 3.591 MB / 442.6 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.1429, allocations: 87.44 kB / 442.7 MB, free: 5.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.1454, allocations: 0.9008 MB / 443.6 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003514/0.1489, allocations: 0.9825 MB / 444.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.15, allocations: 435.4 kB / 445 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2363/0.3863, allocations: 3.76 MB / 448.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002995/0.3893, allocations: 2.094 MB / 450.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002912/0.3922, allocations: 1.7 MB / 452.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004073/0.3963, allocations: 2.019 MB / 454.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.3979, allocations: 422.6 kB / 455 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.4004, allocations: 0.5021 MB / 455.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001746/0.4021, allocations: 1.205 MB / 456.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003622/0.4058, allocations: 1.935 MB / 458.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008218/0.414, allocations: 5.577 MB / 464.2 MB, free: 6.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.414, allocations: 1.031 kB / 464.2 MB, free: 6.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.414, allocations: 0 / 464.2 MB, free: 6.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002387/0.4142, allocations: 1.781 kB / 464.2 MB, free: 6.535 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.01072/0.425, allocations: 3.916 MB / 468.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.425, allocations: 8.062 kB / 468.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.4263, allocations: 406.5 kB / 468.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00358/0.4298, allocations: 2.068 MB / 470.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.43, allocations: 213.6 kB / 470.8 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004807/0.4305, allocations: 285.7 kB / 471.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006938/0.4374, allocations: 3.858 MB / 474.9 MB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.483e-05/0.4375, allocations: 11.44 kB / 474.9 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003023/0.4378, allocations: 123.2 kB / 475.1 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001427/0.438, allocations: 120.7 kB / 475.2 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005879/0.4438, allocations: 3.249 MB / 478.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/0.4667, allocations: 11.82 MB / 490.2 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/0.4711, allocations: 3.541 MB / 493.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/0.4738, allocations: 1.154 MB / 494.9 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003608/0.4741, allocations: 126 kB / 495.1 MB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.118e-05/0.4742, allocations: 51.88 kB / 495.1 MB, free: 2.691 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.737e-06/0.4742, allocations: 2.719 kB / 495.1 MB, free: 2.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01745/0.4917, allocations: 7.364 MB / 0.4907 GB, free: 11.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.4917, allocations: 68.72 kB / 0.4908 GB, free: 11.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004409/0.4961, allocations: 2.063 MB / 0.4928 GB, free: 8.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.4963, allocations: 53.7 kB / 0.4928 GB, free: 8.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/0.4977, allocations: 1.416 MB / 0.4942 GB, free: 7.469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007049/0.4984, allocations: 0.5367 MB / 0.4947 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009175/0.4993, allocations: 347.4 kB / 0.4951 GB, free: 6.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4994, allocations: 301.1 kB / 0.4954 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/0.5012, allocations: 0.8705 MB / 0.4962 GB, free: 5.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002499/0.5037, allocations: 1.367 MB / 0.4975 GB, free: 3.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00441/0.5081, allocations: 2.323 MB / 0.4998 GB, free: 1.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.084e-05/0.5081, allocations: 8 kB / 0.4998 GB, free: 1.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007232/0.5153, allocations: 3.268 MB / 0.503 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.5154, allocations: 14.19 kB / 0.503 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/0.5154, allocations: 16 kB / 0.503 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002634/0.5181, allocations: 0.8492 MB / 0.5039 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.5194, allocations: 348.5 kB / 0.5042 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/0.5402, allocations: 20.59 MB / 0.5243 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.5427, allocations: 91.88 kB / 0.5244 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004112/0.5431, allocations: 76 kB / 0.5245 GB, free: 6.785 MB / 430.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.00256/0.5456, allocations: 0.9353 MB / 0.5254 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008308/0.5465, allocations: 230.5 kB / 0.5256 GB, free: 5.637 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005505/0.552, allocations: 2.628 MB / 0.5282 GB, free: 2.969 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.552, allocations: 20 kB / 0.5282 GB, free: 2.949 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.94e-05/0.552, allocations: 8 kB / 0.5282 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-05/0.552, allocations: 7.969 kB / 0.5282 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/0.5651, allocations: 5.855 MB / 0.5339 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.5651, allocations: 4 kB / 0.5339 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008274/0.5659, allocations: 192 kB / 0.5341 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/0.568, allocations: 0.7424 MB / 0.5348 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.5682, allocations: 35.98 kB / 0.5349 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01787/0.586, allocations: 18.17 MB / 0.5526 GB, free: 8.539 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5861, allocations: 4 kB / 0.5526 GB, free: 8.535 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007052/0.5931, allocations: 3.792 MB / 0.5563 GB, free: 4.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/0.5948, allocations: 0.4956 MB / 0.5568 GB, free: 4.145 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008366/0.5956, allocations: 35.94 kB / 0.5568 GB, free: 4.109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/0.5974, allocations: 103.9 kB / 0.5569 GB, free: 4.008 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004249/0.5978, allocations: 143.9 kB / 0.5571 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/0.5979, allocations: 44 kB / 0.5571 GB, free: 3.832 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003302/0.6012, allocations: 1.404 MB / 0.5585 GB, free: 2.406 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6012, allocations: 0 / 0.5585 GB, free: 2.406 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004699/0.6059, allocations: 0.664 MB / 0.5591 GB, free: 1.742 MB / 462.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.0006935/0.6066, allocations: 201.1 kB / 0.5593 GB, free: 1.547 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006208/0.6128, allocations: 3.364 MB / 0.5626 GB, free: 14.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.6129, allocations: 4.125 kB / 0.5626 GB, free: 14.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/0.6161, allocations: 2.138 MB / 0.5647 GB, free: 11.87 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00469/0.6208, allocations: 0.6859 MB / 0.5654 GB, free: 11.19 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.6337, allocations: 5.767 MB / 0.571 GB, free: 5.363 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002432/0.6361, allocations: 2.249 MB / 0.5732 GB, free: 3.082 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007223/0.6369, allocations: 139.4 kB / 0.5733 GB, free: 2.945 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.6369, allocations: 4 kB / 0.5733 GB, free: 2.941 MB / 478.1 MB Notification: Performance of Templates: time 0.4002/1.037, allocations: 188.6 MB / 0.7576 GB, free: 81.95 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: 17.318256469996413]