Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 113.2 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 213.3 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 51.92 kB / 378.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3088, allocations: 53.35 MB / 431.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01676/0.3256, allocations: 11.55 MB / 443.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007421/0.333, allocations: 3.602 MB / 446.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.3343, allocations: 91.38 kB / 446.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002112/0.3364, allocations: 0.8969 MB / 447.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002463/0.3389, allocations: 0.9786 MB / 448.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009084/0.3398, allocations: 447.2 kB / 449.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004722/0.3445, allocations: 3.752 MB / 453 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00256/0.347, allocations: 1.593 MB / 454.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.3498, allocations: 1.702 MB / 456.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002995/0.3528, allocations: 2.02 MB / 458.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000588/0.3534, allocations: 420 kB / 458.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009746/0.3543, allocations: 0.5037 MB / 459.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001273/0.3556, allocations: 1.219 MB / 460.4 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002327/0.3579, allocations: 1.933 MB / 462.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006239/0.3642, allocations: 5.574 MB / 467.9 MB, free: 2.453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3642, allocations: 3.938 kB / 467.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3642, allocations: 0 / 467.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001054/0.3643, allocations: 0 / 467.9 MB, free: 2.449 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.007547/0.3718, allocations: 3.838 MB / 471.7 MB, free: 14.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3719, allocations: 8.031 kB / 471.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009176/0.3728, allocations: 410.5 kB / 472.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.3767, allocations: 2.001 MB / 474.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.3769, allocations: 210.1 kB / 474.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004211/0.3773, allocations: 295.9 kB / 474.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006562/0.3839, allocations: 3.861 MB / 478.5 MB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.076e-05/0.384, allocations: 11.89 kB / 478.5 MB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002678/0.3842, allocations: 116 kB / 478.6 MB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.3844, allocations: 117.5 kB / 478.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005523/0.3899, allocations: 3.254 MB / 482 MB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01998/0.4099, allocations: 11.65 MB / 493.7 MB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003192/0.4131, allocations: 1.735 MB / 495.4 MB, free: 6.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002266/0.4153, allocations: 1.149 MB / 496.5 MB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002415/0.4156, allocations: 51.12 kB / 496.6 MB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.798e-05/0.4156, allocations: 51.81 kB / 496.6 MB, free: 5.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.156e-06/0.4156, allocations: 0 / 496.6 MB, free: 5.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01498/0.4306, allocations: 6.542 MB / 0.4914 GB, free: 14.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.4307, allocations: 68.72 kB / 0.4915 GB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004246/0.4349, allocations: 2.056 MB / 0.4935 GB, free: 12.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.4351, allocations: 53.7 kB / 0.4935 GB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.4363, allocations: 1.409 MB / 0.4949 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005436/0.4369, allocations: 0.5345 MB / 0.4954 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006453/0.4375, allocations: 347.4 kB / 0.4957 GB, free: 10.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4377, allocations: 309.1 kB / 0.496 GB, free: 9.777 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.4392, allocations: 0.8666 MB / 0.4969 GB, free: 8.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/0.4412, allocations: 1.369 MB / 0.4982 GB, free: 7.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003545/0.4447, allocations: 2.322 MB / 0.5005 GB, free: 4.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/0.4447, allocations: 7.938 kB / 0.5005 GB, free: 4.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006248/0.451, allocations: 3.196 MB / 0.5036 GB, free: 1.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.451, allocations: 16.09 kB / 0.5036 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.544e-05/0.451, allocations: 12 kB / 0.5036 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002489/0.4535, allocations: 0.8483 MB / 0.5045 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4548, allocations: 343.4 kB / 0.5048 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/0.4756, allocations: 19.47 MB / 0.5238 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.4773, allocations: 95.83 kB / 0.5239 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002737/0.4775, allocations: 79.98 kB / 0.524 GB, free: 11.42 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.001874/0.4794, allocations: 0.9383 MB / 0.5249 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005536/0.48, allocations: 230.5 kB / 0.5251 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005041/0.485, allocations: 2.538 MB / 0.5276 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.485, allocations: 16 kB / 0.5276 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.396e-05/0.485, allocations: 8 kB / 0.5276 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.4851, allocations: 7.969 kB / 0.5276 GB, free: 7.625 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.4968, allocations: 5.769 MB / 0.5333 GB, free: 1.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.4968, allocations: 4 kB / 0.5333 GB, free: 1.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008129/0.4976, allocations: 199.6 kB / 0.5334 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/0.4996, allocations: 0.7226 MB / 0.5342 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.4997, allocations: 43.98 kB / 0.5342 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2191/0.7188, allocations: 17.13 MB / 0.5509 GB, free: 85.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.7188, allocations: 7.594 kB / 0.5509 GB, free: 85.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004966/0.7237, allocations: 3.716 MB / 0.5546 GB, free: 84.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.7249, allocations: 413.9 kB / 0.555 GB, free: 83.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/0.7251, allocations: 39.03 kB / 0.555 GB, free: 83.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7262, allocations: 106.4 kB / 0.5551 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/0.7265, allocations: 151.7 kB / 0.5552 GB, free: 83.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.221e-05/0.7266, allocations: 42.62 kB / 0.5553 GB, free: 83.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001955/0.7286, allocations: 1.405 MB / 0.5567 GB, free: 83.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7286, allocations: 3.188 kB / 0.5567 GB, free: 83.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002341/0.7309, allocations: 0.6573 MB / 0.5573 GB, free: 83.23 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.0003698/0.7313, allocations: 210 kB / 0.5575 GB, free: 83.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003897/0.7352, allocations: 3.362 MB / 0.5608 GB, free: 81.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.7352, allocations: 3.75 kB / 0.5608 GB, free: 81.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.7372, allocations: 2.15 MB / 0.5629 GB, free: 79.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/0.7398, allocations: 0.6915 MB / 0.5636 GB, free: 79.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00751/0.7473, allocations: 5.796 MB / 0.5692 GB, free: 74.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.7488, allocations: 2.283 MB / 0.5714 GB, free: 72.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001238/0.75, allocations: 0.4988 MB / 0.5719 GB, free: 71.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.7503, allocations: 131.4 kB / 0.5721 GB, free: 71.39 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7503, allocations: 0 / 0.5721 GB, free: 71.39 MB / 446.1 MB Notification: Performance of Templates: time 0.05424/0.8045, allocations: 38.33 MB / 0.6095 GB, free: 33.64 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 6.270056061912328]