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.001766/0.001766, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002135/0.002135, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.473/1.473, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.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 0.001923/0.001923, allocations: 59.89 kB / 378.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2818, allocations: 53.37 MB / 432.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01436/0.2962, allocations: 11.54 MB / 443.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00845/0.3046, allocations: 3.606 MB / 447.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.3072, allocations: 87.38 kB / 447.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003563/0.3108, allocations: 0.9008 MB / 448.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004311/0.3151, allocations: 0.9787 MB / 449.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.3163, allocations: 455.2 kB / 449.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004781/0.3211, allocations: 3.763 MB / 453.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002354/0.3234, allocations: 1.589 MB / 455.1 MB, free: 0 / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.326, allocations: 1.706 MB / 456.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00314/0.3292, allocations: 2.024 MB / 458.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000743/0.3299, allocations: 416 kB / 459.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001204/0.3311, allocations: 0.5037 MB / 459.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.3325, allocations: 1.223 MB / 460.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002512/0.335, allocations: 1.937 MB / 462.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006906/0.3419, allocations: 5.574 MB / 468.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3419, allocations: 0 / 468.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3419, allocations: 0 / 468.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001724/0.3421, allocations: 0 / 468.4 MB, free: 2.582 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.009124/0.3512, allocations: 3.832 MB / 472.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.3512, allocations: 12.03 kB / 472.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/0.3523, allocations: 410.6 kB / 472.7 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004188/0.3565, allocations: 1.997 MB / 474.7 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3567, allocations: 218.1 kB / 474.9 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004459/0.3571, allocations: 287.9 kB / 475.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006819/0.3639, allocations: 3.861 MB / 479 MB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.557e-05/0.364, allocations: 11.89 kB / 479 MB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.3643, allocations: 120 kB / 479.1 MB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.3644, allocations: 121.5 kB / 479.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005854/0.3703, allocations: 3.25 MB / 482.5 MB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.022/0.3923, allocations: 11.65 MB / 494.2 MB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.3951, allocations: 1.739 MB / 495.9 MB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/0.3974, allocations: 1.149 MB / 497.1 MB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.3977, allocations: 45.28 kB / 497.1 MB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/0.3977, allocations: 53.73 kB / 497.1 MB, free: 5.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.697e-06/0.3977, allocations: 0 / 497.1 MB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01592/0.4137, allocations: 6.542 MB / 0.4919 GB, free: 14.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.4137, allocations: 68.72 kB / 0.492 GB, free: 14.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.417, allocations: 2.064 MB / 0.494 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.4173, allocations: 53.7 kB / 0.494 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.4184, allocations: 1.401 MB / 0.4954 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005431/0.419, allocations: 0.5384 MB / 0.4959 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005888/0.4196, allocations: 347.4 kB / 0.4962 GB, free: 10.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4197, allocations: 309.1 kB / 0.4965 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.4212, allocations: 0.8705 MB / 0.4974 GB, free: 9.039 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.423, allocations: 1.362 MB / 0.4987 GB, free: 7.473 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.4263, allocations: 2.334 MB / 0.501 GB, free: 4.934 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.4263, allocations: 4 kB / 0.501 GB, free: 4.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00624/0.4326, allocations: 3.191 MB / 0.5041 GB, free: 1.695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.4326, allocations: 12.5 kB / 0.5041 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/0.4326, allocations: 16 kB / 0.5041 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002579/0.4352, allocations: 0.8522 MB / 0.505 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.4366, allocations: 343.4 kB / 0.5053 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0201/0.4567, allocations: 19.46 MB / 0.5243 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/0.459, allocations: 99.83 kB / 0.5244 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002458/0.4592, allocations: 76 kB / 0.5245 GB, free: 11.55 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.002133/0.4614, allocations: 0.9383 MB / 0.5254 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006494/0.462, allocations: 234.5 kB / 0.5256 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004754/0.4668, allocations: 2.534 MB / 0.5281 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.4668, allocations: 16 kB / 0.5281 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.4668, allocations: 8 kB / 0.5281 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/0.4668, allocations: 7.969 kB / 0.5281 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.4778, allocations: 5.761 MB / 0.5337 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.4778, allocations: 4 kB / 0.5337 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008287/0.4786, allocations: 203.7 kB / 0.5339 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/0.4807, allocations: 0.7225 MB / 0.5346 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.4808, allocations: 35.98 kB / 0.5347 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2418/0.7226, allocations: 17.14 MB / 0.5514 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.7226, allocations: 3.594 kB / 0.5514 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004937/0.7276, allocations: 3.74 MB / 0.5551 GB, free: 84.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.7287, allocations: 414 kB / 0.5555 GB, free: 84.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.729, allocations: 38.97 kB / 0.5555 GB, free: 84.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.7301, allocations: 105 kB / 0.5556 GB, free: 84.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/0.7304, allocations: 143.8 kB / 0.5557 GB, free: 84.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.791e-05/0.7305, allocations: 45.14 kB / 0.5558 GB, free: 84.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.7322, allocations: 1.404 MB / 0.5572 GB, free: 83.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7322, allocations: 0 / 0.5572 GB, free: 83.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002102/0.7343, allocations: 0.6628 MB / 0.5578 GB, free: 83.41 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.0003582/0.7346, allocations: 205.9 kB / 0.558 GB, free: 83.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004044/0.7387, allocations: 3.365 MB / 0.5613 GB, free: 81.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.7387, allocations: 4 kB / 0.5613 GB, free: 81.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002083/0.7408, allocations: 2.141 MB / 0.5634 GB, free: 79.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.7436, allocations: 0.6833 MB / 0.564 GB, free: 79.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.7514, allocations: 5.808 MB / 0.5697 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001582/0.753, allocations: 2.287 MB / 0.572 GB, free: 72.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00144/0.7544, allocations: 0.4949 MB / 0.5724 GB, free: 71.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.7547, allocations: 127.4 kB / 0.5726 GB, free: 71.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7547, allocations: 4 kB / 0.5726 GB, free: 71.7 MB / 446.1 MB Notification: Performance of Templates: time 0.05246/0.8072, allocations: 38.33 MB / 0.61 GB, free: 33.88 MB / 446.1 MB " [Timeout remaining time 659] 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: 6.304408109746873]