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.001936/0.001936, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002331/0.002331, allocations: 213.9 kB / 24.48 MB, free: 3.949 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.52/1.52, allocations: 230.5 MB / 258.1 MB, free: 7.777 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.002661/0.002661, allocations: 59.91 kB / 379 MB, free: 2.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3461, allocations: 53.41 MB / 432.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01571/0.3618, allocations: 10.05 MB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008955/0.3708, allocations: 3.392 MB / 445.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002571/0.3734, allocations: 91.38 kB / 445.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003254/0.3766, allocations: 0.8297 MB / 446.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004251/0.3809, allocations: 0.9786 MB / 447.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.3827, allocations: 443.4 kB / 448.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006322/0.389, allocations: 3.759 MB / 451.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003565/0.3926, allocations: 1.542 MB / 453.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003229/0.3958, allocations: 1.709 MB / 455.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003764/0.3996, allocations: 1.949 MB / 457.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001162/0.4008, allocations: 423.9 kB / 457.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.4023, allocations: 0.4998 MB / 458.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.4036, allocations: 1.208 MB / 459.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002577/0.4062, allocations: 1.579 MB / 460.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006993/0.4132, allocations: 5.605 MB / 466.5 MB, free: 4.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.4132, allocations: 4 kB / 466.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4132, allocations: 0 / 466.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001898/0.4134, allocations: 0 / 466.5 MB, free: 4.289 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.009284/0.4227, allocations: 3.828 MB / 470.3 MB, free: 416 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4227, allocations: 19.98 kB / 470.3 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.4238, allocations: 406.6 kB / 470.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004367/0.4282, allocations: 2.001 MB / 472.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.4284, allocations: 214.1 kB / 472.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004695/0.4288, allocations: 295.9 kB / 473.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007531/0.4364, allocations: 4.155 MB / 477.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.316e-05/0.4364, allocations: 7.891 kB / 477.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002853/0.4367, allocations: 128 kB / 477.5 MB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.4369, allocations: 125.5 kB / 477.6 MB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006/0.4429, allocations: 3.246 MB / 480.9 MB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/0.4624, allocations: 10.33 MB / 491.2 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002672/0.4651, allocations: 1.739 MB / 492.9 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00212/0.4672, allocations: 1.15 MB / 494.1 MB, free: 8.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.4674, allocations: 45.28 kB / 494.1 MB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/0.4675, allocations: 59.81 kB / 494.2 MB, free: 8.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.847e-06/0.4675, allocations: 0 / 494.2 MB, free: 8.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01506/0.4826, allocations: 6.504 MB / 0.489 GB, free: 1.453 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.4826, allocations: 68.72 kB / 0.489 GB, free: 1.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.4864, allocations: 1.9 MB / 0.4909 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.4866, allocations: 53.7 kB / 0.4909 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.4879, allocations: 1.42 MB / 0.4923 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000628/0.4885, allocations: 0.5307 MB / 0.4928 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007151/0.4892, allocations: 347.4 kB / 0.4932 GB, free: 13.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4893, allocations: 305.1 kB / 0.4934 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.4908, allocations: 0.8666 MB / 0.4943 GB, free: 11.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.4928, allocations: 1.373 MB / 0.4956 GB, free: 10.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/0.4963, allocations: 2.322 MB / 0.4979 GB, free: 7.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/0.4963, allocations: 11.94 kB / 0.4979 GB, free: 7.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006085/0.5024, allocations: 3.172 MB / 0.501 GB, free: 4.598 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.5024, allocations: 15.98 kB / 0.501 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.151e-05/0.5024, allocations: 16.5 kB / 0.501 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002431/0.5049, allocations: 0.8521 MB / 0.5019 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.5061, allocations: 343.4 kB / 0.5022 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01953/0.5257, allocations: 19.12 MB / 0.5209 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.5276, allocations: 103.8 kB / 0.521 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003279/0.5279, allocations: 68 kB / 0.521 GB, free: 14.93 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.002061/0.5299, allocations: 0.9418 MB / 0.522 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006245/0.5306, allocations: 206.7 kB / 0.5222 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005272/0.5358, allocations: 2.536 MB / 0.5246 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/0.5359, allocations: 16 kB / 0.5247 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.862e-05/0.5359, allocations: 7.984 kB / 0.5247 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.5359, allocations: 3.984 kB / 0.5247 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.5477, allocations: 5.13 MB / 0.5297 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.5477, allocations: 0 / 0.5297 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00084/0.5486, allocations: 195.7 kB / 0.5299 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.5507, allocations: 0.7265 MB / 0.5306 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.5508, allocations: 39.98 kB / 0.5306 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2584/0.8092, allocations: 16.83 MB / 0.547 GB, free: 89.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.8092, allocations: 8.188 kB / 0.547 GB, free: 89.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005097/0.8143, allocations: 3.701 MB / 0.5507 GB, free: 88.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.8154, allocations: 400.8 kB / 0.551 GB, free: 87.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/0.8157, allocations: 35.41 kB / 0.5511 GB, free: 87.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009677/0.8167, allocations: 111.2 kB / 0.5512 GB, free: 87.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002904/0.817, allocations: 145.6 kB / 0.5513 GB, free: 87.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.817, allocations: 45.06 kB / 0.5514 GB, free: 87.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001467/0.8185, allocations: 1.267 MB / 0.5526 GB, free: 87.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8185, allocations: 0 / 0.5526 GB, free: 87.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002074/0.8206, allocations: 0.6543 MB / 0.5532 GB, free: 87.34 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.0003553/0.8209, allocations: 208.1 kB / 0.5534 GB, free: 87.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.8245, allocations: 3.363 MB / 0.5567 GB, free: 85.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8245, allocations: 0 / 0.5567 GB, free: 85.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.8263, allocations: 2.14 MB / 0.5588 GB, free: 83.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.8289, allocations: 0.606 MB / 0.5594 GB, free: 82.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007007/0.8359, allocations: 5.793 MB / 0.5651 GB, free: 77.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.8372, allocations: 1.693 MB / 0.5667 GB, free: 76.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004925/0.8377, allocations: 135.2 kB / 0.5668 GB, free: 76.17 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8377, allocations: 0 / 0.5668 GB, free: 76.17 MB / 446.1 MB Notification: Performance of Templates: time 0.4342/1.272, allocations: 188.5 MB / 0.7509 GB, free: 182 MB / 0.5294 GB " [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/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_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: 16.916993285063654]