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.001617/0.001625, allocations: 119.4 kB / 18.41 MB, free: 4.648 MB / 14.72 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.001375/0.001375, allocations: 192.3 kB / 21.35 MB, free: 1.711 MB / 14.72 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 1.457/1.457, allocations: 222.9 MB / 247.1 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001537/0.001537, allocations: 51.91 kB / 358.7 MB, free: 8.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, allocations: 49.43 MB / 408.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01445/0.1273, allocations: 11.43 MB / 419.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008161/0.1355, allocations: 3.532 MB / 423.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002398/0.138, allocations: 67.69 kB / 423.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.1407, allocations: 0.8267 MB / 424 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003601/0.1443, allocations: 0.9357 MB / 424.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.1457, allocations: 431.4 kB / 425.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005684/0.1514, allocations: 3.748 MB / 429.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2268/0.3782, allocations: 2.863 MB / 431.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00245/0.3807, allocations: 1.654 MB / 433.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.3837, allocations: 1.96 MB / 435.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000968/0.3847, allocations: 419 kB / 436 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.3859, allocations: 0.4986 MB / 436.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.3871, allocations: 1.196 MB / 437.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002438/0.3895, allocations: 1.932 MB / 439.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007055/0.3966, allocations: 5.561 MB / 445.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3966, allocations: 0 / 445.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3966, allocations: 0.875 kB / 445.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001663/0.3968, allocations: 0 / 445.2 MB, free: 4.766 MB / 350.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.008653/0.4055, allocations: 3.907 MB / 449.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.4055, allocations: 8.844 kB / 449.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.4067, allocations: 411.8 kB / 449.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003398/0.4101, allocations: 2.068 MB / 451.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.4102, allocations: 219.3 kB / 451.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004304/0.4107, allocations: 288.5 kB / 452 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006533/0.4172, allocations: 3.859 MB / 455.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.729e-05/0.4173, allocations: 11.83 kB / 455.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/0.4176, allocations: 113 kB / 456 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.4178, allocations: 124.4 kB / 456.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004883/0.4226, allocations: 3.253 MB / 459.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01965/0.4423, allocations: 11.81 MB / 471.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/0.4462, allocations: 3.663 MB / 474.9 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.4485, allocations: 1.256 MB / 476.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002671/0.4488, allocations: 126.4 kB / 476.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/0.4488, allocations: 47.88 kB / 476.3 MB, free: 2.059 MB / 366.1 MB Notification: Performance of pre-optimization done (n=136): time 2.986e-06/0.4488, allocations: 0 / 476.3 MB, free: 2.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=151): time 0.01567/0.4645, allocations: 7.375 MB / 483.7 MB, free: 10.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.4646, allocations: 72.7 kB / 483.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003413/0.468, allocations: 2.064 MB / 485.8 MB, free: 8.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/0.4682, allocations: 49.7 kB / 485.8 MB, free: 8.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.4694, allocations: 1.402 MB / 487.2 MB, free: 6.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004831/0.4698, allocations: 0.5331 MB / 487.8 MB, free: 6.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005942/0.4704, allocations: 351.4 kB / 488.1 MB, free: 5.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4706, allocations: 301.1 kB / 488.4 MB, free: 5.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.472, allocations: 0.8705 MB / 489.3 MB, free: 4.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.4739, allocations: 1.37 MB / 490.7 MB, free: 3.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003296/0.4772, allocations: 2.326 MB / 493 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.4772, allocations: 4 kB / 493 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005943/0.4832, allocations: 3.287 MB / 496.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.4832, allocations: 12 kB / 496.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.513e-05/0.4833, allocations: 16 kB / 496.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/0.4857, allocations: 0.8407 MB / 497.1 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.4869, allocations: 343.8 kB / 497.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01995/0.5069, allocations: 20.61 MB / 0.5059 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.5089, allocations: 91.92 kB / 0.506 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.5091, allocations: 76.06 kB / 0.5061 GB, free: 6.094 MB / 414.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.001808/0.5109, allocations: 0.9359 MB / 0.507 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004465/0.5114, allocations: 230.5 kB / 0.5072 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0047/0.5161, allocations: 2.633 MB / 0.5098 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.5161, allocations: 12 kB / 0.5098 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.5161, allocations: 8 kB / 0.5098 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.5162, allocations: 7.969 kB / 0.5098 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.5264, allocations: 5.883 MB / 0.5156 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.5264, allocations: 4 kB / 0.5156 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007953/0.5272, allocations: 194.5 kB / 0.5158 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/0.5292, allocations: 0.7396 MB / 0.5165 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.966e-05/0.5294, allocations: 32 kB / 0.5165 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01717/0.5465, allocations: 18.16 MB / 0.5343 GB, free: 7.828 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.882e-06/0.5466, allocations: 4 kB / 0.5343 GB, free: 7.824 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006651/0.5532, allocations: 3.812 MB / 0.538 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.5545, allocations: 491.6 kB / 0.5384 GB, free: 3.426 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003079/0.5548, allocations: 39.92 kB / 0.5385 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.5559, allocations: 107.9 kB / 0.5386 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/0.5563, allocations: 139.9 kB / 0.5387 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.5565, allocations: 47.98 kB / 0.5388 GB, free: 3.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002252/0.5587, allocations: 1.396 MB / 0.5401 GB, free: 1.684 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5587, allocations: 0 / 0.5401 GB, free: 1.684 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002632/0.5614, allocations: 0.6601 MB / 0.5408 GB, free: 1.023 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.0004367/0.5618, allocations: 216 kB / 0.541 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005092/0.5669, allocations: 3.456 MB / 0.5444 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.5669, allocations: 7.656 kB / 0.5444 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002815/0.5698, allocations: 2.208 MB / 0.5465 GB, free: 10.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003293/0.5731, allocations: 0.6755 MB / 0.5472 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.5839, allocations: 5.781 MB / 0.5528 GB, free: 4.465 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002179/0.5862, allocations: 2.244 MB / 0.555 GB, free: 2.195 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006457/0.5868, allocations: 143.4 kB / 0.5552 GB, free: 2.055 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5868, allocations: 3.938 kB / 0.5552 GB, free: 2.051 MB / 462.1 MB Notification: Performance of Templates: time 0.3608/0.9476, allocations: 188.1 MB / 0.7389 GB, free: 78.34 MB / 0.5137 GB " [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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.71915944898501]