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.001624/0.001624, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.002023/0.002023, allocations: 215.3 kB / 23 MB, free: 5.609 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.567/1.567, allocations: 230.2 MB / 256.2 MB, free: 8.523 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.00189/0.00189, allocations: 63.89 kB / 376.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2819, allocations: 53.32 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01504/0.297, allocations: 11.54 MB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008226/0.3052, allocations: 3.618 MB / 445 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.309, allocations: 67.69 kB / 445 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003557/0.3126, allocations: 0.8969 MB / 445.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003848/0.3164, allocations: 0.9825 MB / 446.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.318, allocations: 443.3 kB / 447.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006073/0.3241, allocations: 3.752 MB / 451.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.3273, allocations: 1.596 MB / 452.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003119/0.3305, allocations: 1.678 MB / 454.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004/0.3345, allocations: 2.016 MB / 456.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/0.3359, allocations: 420 kB / 456.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001846/0.3378, allocations: 0.5037 MB / 457.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.3394, allocations: 1.215 MB / 458.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002875/0.3423, allocations: 1.941 MB / 460.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006768/0.3491, allocations: 5.566 MB / 466 MB, free: 3.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3491, allocations: 0 / 466 MB, free: 3.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3491, allocations: 0 / 466 MB, free: 3.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001481/0.3492, allocations: 0 / 466 MB, free: 3.121 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.008082/0.3573, allocations: 3.909 MB / 469.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3573, allocations: 8.031 kB / 469.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.3584, allocations: 410.5 kB / 470.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004035/0.3624, allocations: 2.073 MB / 472.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003558/0.3628, allocations: 220.1 kB / 472.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005175/0.3633, allocations: 287.9 kB / 472.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007393/0.3707, allocations: 3.857 MB / 476.8 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.03e-05/0.3708, allocations: 7.984 kB / 476.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/0.371, allocations: 116 kB / 476.9 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.3712, allocations: 117.5 kB / 477 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006204/0.3774, allocations: 3.254 MB / 480.3 MB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02135/0.3987, allocations: 11.82 MB / 492.1 MB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/0.4024, allocations: 3.535 MB / 495.6 MB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002156/0.4046, allocations: 1.164 MB / 496.8 MB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002756/0.4048, allocations: 118.4 kB / 496.9 MB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/0.4049, allocations: 51.88 kB / 497 MB, free: 3.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.456e-06/0.4049, allocations: 0 / 497 MB, free: 3.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01496/0.4199, allocations: 7.358 MB / 0.4925 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.4199, allocations: 68.72 kB / 0.4926 GB, free: 11.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003243/0.4232, allocations: 2.072 MB / 0.4946 GB, free: 9.418 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.4233, allocations: 49.7 kB / 0.4946 GB, free: 9.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.4245, allocations: 1.417 MB / 0.496 GB, free: 7.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/0.425, allocations: 0.5423 MB / 0.4965 GB, free: 7.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005705/0.4255, allocations: 347.4 kB / 0.4969 GB, free: 7.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4257, allocations: 309.1 kB / 0.4972 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.4271, allocations: 0.8666 MB / 0.498 GB, free: 5.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.4289, allocations: 1.369 MB / 0.4993 GB, free: 4.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003296/0.4322, allocations: 2.326 MB / 0.5016 GB, free: 1.758 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.4322, allocations: 4 kB / 0.5016 GB, free: 1.754 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005789/0.438, allocations: 3.263 MB / 0.5048 GB, free: 14.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.438, allocations: 14.34 kB / 0.5048 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.779e-05/0.4381, allocations: 19.98 kB / 0.5048 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002453/0.4405, allocations: 0.8327 MB / 0.5057 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.4418, allocations: 347.4 kB / 0.506 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02055/0.4623, allocations: 20.6 MB / 0.5261 GB, free: 7.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.4644, allocations: 99.88 kB / 0.5262 GB, free: 6.961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.4646, allocations: 72 kB / 0.5263 GB, free: 6.891 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.002069/0.4666, allocations: 0.9383 MB / 0.5272 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006176/0.4672, allocations: 226.6 kB / 0.5274 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004816/0.4721, allocations: 2.613 MB / 0.53 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.4721, allocations: 16 kB / 0.53 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.4721, allocations: 7.938 kB / 0.53 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.4721, allocations: 7.969 kB / 0.53 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/0.4827, allocations: 5.875 MB / 0.5357 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.4827, allocations: 4 kB / 0.5357 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00077/0.4835, allocations: 195.7 kB / 0.5359 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/0.4854, allocations: 0.7265 MB / 0.5366 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.845e-05/0.4855, allocations: 47.98 kB / 0.5367 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2231/0.7086, allocations: 18.15 MB / 0.5544 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.371e-06/0.7086, allocations: 5.812 kB / 0.5544 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005728/0.7144, allocations: 3.791 MB / 0.5581 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.7159, allocations: 499.4 kB / 0.5586 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.7162, allocations: 39.69 kB / 0.5586 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.7173, allocations: 103.4 kB / 0.5587 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/0.7177, allocations: 142.8 kB / 0.5588 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7178, allocations: 45 kB / 0.5589 GB, free: 106.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002328/0.7202, allocations: 1.408 MB / 0.5603 GB, free: 106.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7202, allocations: 3.609 kB / 0.5603 GB, free: 106.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003136/0.7233, allocations: 0.6621 MB / 0.5609 GB, free: 106 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.0003916/0.7237, allocations: 199.2 kB / 0.5611 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004128/0.7278, allocations: 3.371 MB / 0.5644 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.7278, allocations: 0 / 0.5644 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00203/0.7299, allocations: 2.141 MB / 0.5665 GB, free: 102.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/0.7327, allocations: 0.6829 MB / 0.5672 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007085/0.7398, allocations: 5.804 MB / 0.5728 GB, free: 98.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.7412, allocations: 2.293 MB / 0.5751 GB, free: 96.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001269/0.7424, allocations: 0.4911 MB / 0.5755 GB, free: 96.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.7428, allocations: 143.1 kB / 0.5757 GB, free: 96.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.293e-06/0.7428, allocations: 0 / 0.5757 GB, free: 96.48 MB / 462.1 MB Notification: Performance of Templates: time 0.05412/0.7969, allocations: 37.75 MB / 0.6125 GB, free: 59.7 MB / 462.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.242931104265153]