Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000774/0.000774, allocations: 80.06 kB / 21.43 MB, free: 3.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002979/0.002979, allocations: 140.9 kB / 24.68 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8285/0.8285, allocations: 173.4 MB / 201.2 MB, free: 9.406 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 319.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.961e-05/2.093e-05, allocations: 10.16 kB / 319.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007766/0.007787, allocations: 10.02 MB / 329.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.0115, allocations: 3.365 MB / 333.1 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004905/0.01199, allocations: 91.44 kB / 333.2 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.01311, allocations: 0.8343 MB / 334 MB, free: 7.426 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001172/0.01428, allocations: 1.013 MB / 335 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004358/0.01471, allocations: 447.3 kB / 335.5 MB, free: 5.969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002226/0.01694, allocations: 3.867 MB / 339.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.01816, allocations: 1.546 MB / 340.9 MB, free: 484 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.02, allocations: 2.456 MB / 343.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.02146, allocations: 1.746 MB / 345.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002941/0.02175, allocations: 420 kB / 345.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004839/0.02224, allocations: 0.492 MB / 346 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006431/0.02288, allocations: 1.246 MB / 347.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000794/0.02367, allocations: 1.337 MB / 348.6 MB, free: 8.77 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003237/0.02691, allocations: 5.624 MB / 354.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.02691, allocations: 0 / 354.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.02692, allocations: 0 / 354.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.152e-05/0.02695, allocations: 0 / 354.2 MB, free: 3.129 MB / 314.7 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.003701/0.03065, allocations: 3.798 MB / 358 MB, free: 15.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.03068, allocations: 12.92 kB / 358 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005423/0.03123, allocations: 410.6 kB / 358.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.03339, allocations: 2 MB / 360.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.883e-05/0.03348, allocations: 214.1 kB / 360.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002533/0.03374, allocations: 280.3 kB / 360.9 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003675/0.03741, allocations: 4.169 MB / 365.1 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.613e-05/0.03746, allocations: 4 kB / 365.1 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001735/0.03763, allocations: 120 kB / 365.2 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.004e-05/0.03771, allocations: 121.5 kB / 365.3 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003349/0.04106, allocations: 3.242 MB / 368.5 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009595/0.05066, allocations: 10.35 MB / 378.9 MB, free: 9.855 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.05239, allocations: 1.748 MB / 380.6 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.05355, allocations: 1.153 MB / 381.8 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.05371, allocations: 45.28 kB / 381.8 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.05374, allocations: 51.88 kB / 381.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.046e-06/0.05374, allocations: 0 / 381.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.007948/0.06169, allocations: 6.497 MB / 388.4 MB, free: 348 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.06173, allocations: 68.72 kB / 388.5 MB, free: 268 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.06346, allocations: 1.899 MB / 390.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.673e-05/0.06353, allocations: 53.7 kB / 390.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006304/0.06416, allocations: 1.412 MB / 391.8 MB, free: 12.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.06443, allocations: 0.5306 MB / 392.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/0.06476, allocations: 343.4 kB / 392.7 MB, free: 12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.06482, allocations: 301.1 kB / 393 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008323/0.06565, allocations: 0.8744 MB / 393.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.06686, allocations: 1.377 MB / 395.2 MB, free: 9.242 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/0.06877, allocations: 2.326 MB / 397.6 MB, free: 6.711 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.06877, allocations: 7.938 kB / 397.6 MB, free: 6.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003204/0.07198, allocations: 3.176 MB / 400.7 MB, free: 3.484 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.072, allocations: 12 kB / 400.7 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.07202, allocations: 12 kB / 400.8 MB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.07323, allocations: 0.8448 MB / 401.6 MB, free: 2.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.07401, allocations: 343.4 kB / 401.9 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.0843, allocations: 19.1 MB / 421 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008997/0.0852, allocations: 95.88 kB / 421.1 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.47e-05/0.08529, allocations: 72 kB / 421.2 MB, free: 13.86 MB / 394.7 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.00129/0.08658, allocations: 0.9373 MB / 422.1 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.08678, allocations: 218.6 kB / 422.4 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.08948, allocations: 2.529 MB / 424.9 MB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.08949, allocations: 16 kB / 424.9 MB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.0895, allocations: 8 kB / 424.9 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.08951, allocations: 3.984 kB / 424.9 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.09463, allocations: 5.123 MB / 430 MB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.09464, allocations: 4 kB / 430 MB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.09503, allocations: 196.2 kB / 430.2 MB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.09612, allocations: 0.738 MB / 431 MB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/0.09618, allocations: 39.92 kB / 431 MB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008559/0.1047, allocations: 16.81 MB / 447.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1047, allocations: 7.938 kB / 447.8 MB, free: 1.984 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1613/0.2661, allocations: 3.695 MB / 451.5 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.2672, allocations: 404.4 kB / 451.9 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.2673, allocations: 33.78 kB / 451.9 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.2679, allocations: 106.8 kB / 452 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.2682, allocations: 147.6 kB / 452.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.332e-05/0.2682, allocations: 46.28 kB / 452.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001352/0.2696, allocations: 1.263 MB / 453.5 MB, free: 115.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2696, allocations: 0 / 453.5 MB, free: 115.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001892/0.2715, allocations: 0.6543 MB / 454.2 MB, free: 115.1 MB / 410.7 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.0003132/0.2718, allocations: 204 kB / 454.4 MB, free: 115 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.2742, allocations: 3.364 MB / 457.7 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.2742, allocations: 3.688 kB / 457.7 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.2755, allocations: 2.131 MB / 459.9 MB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.2768, allocations: 0.5957 MB / 460.4 MB, free: 111.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005105/0.2819, allocations: 5.653 MB / 466.1 MB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.2829, allocations: 1.694 MB / 467.8 MB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.2832, allocations: 140.4 kB / 467.9 MB, free: 106.8 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2832, allocations: 0 / 467.9 MB, free: 106.8 MB / 410.7 MB Notification: Performance of Templates: time 0.223/0.5062, allocations: 188.2 MB / 0.6407 GB, free: 133.1 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.997317817993462]