Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001843/0.001843, allocations: 84.64 kB / 20.68 MB, free: 1.039 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.002334/0.002334, allocations: 157.8 kB / 23.95 MB, free: 4.168 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.516/1.516, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.476e-05, allocations: 2.281 kB / 325 MB, free: 484 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01337/0.0134, allocations: 9.668 MB / 334.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007938/0.02134, allocations: 3.482 MB / 338.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.02343, allocations: 84.34 kB / 338.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002474/0.0259, allocations: 0.8206 MB / 339.1 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.02941, allocations: 0.9429 MB / 340 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.03083, allocations: 469 kB / 340.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004682/0.03551, allocations: 3.049 MB / 343.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.03792, allocations: 1.513 MB / 345.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003335/0.04126, allocations: 2.062 MB / 347.1 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.04377, allocations: 1.516 MB / 348.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006112/0.04438, allocations: 372 kB / 349 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.04539, allocations: 483.7 kB / 349.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.04665, allocations: 1.114 MB / 350.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001636/0.04829, allocations: 1.138 MB / 351.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005937/0.05422, allocations: 4.95 MB / 356.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.05423, allocations: 0 / 356.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.05423, allocations: 0 / 356.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001273/0.05436, allocations: 0 / 356.7 MB, free: 5.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007524/0.06188, allocations: 3.378 MB / 360 MB, free: 1.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.06192, allocations: 8.031 kB / 360.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.06294, allocations: 366.8 kB / 360.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/0.06625, allocations: 1.751 MB / 362.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.06643, allocations: 193.3 kB / 362.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/0.06685, allocations: 264.3 kB / 362.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005895/0.07274, allocations: 3.359 MB / 366 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.466e-05/0.07281, allocations: 7.984 kB / 366 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.07306, allocations: 100 kB / 366.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.07322, allocations: 124.9 kB / 366.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00498/0.0782, allocations: 2.744 MB / 368.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01537/0.09357, allocations: 9.039 MB / 378 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.0955, allocations: 1.069 MB / 379 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.09677, allocations: 0.6964 MB / 379.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002349/0.097, allocations: 48.97 kB / 379.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.09705, allocations: 47.56 kB / 379.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 6.633e-06/0.09705, allocations: 7.984 kB / 379.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01657/0.1136, allocations: 6.64 MB / 386.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.1137, allocations: 64.41 kB / 386.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/0.1163, allocations: 1.649 MB / 388.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.1164, allocations: 41.7 kB / 388.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.1175, allocations: 1.325 MB / 389.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.118, allocations: 444.3 kB / 390 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005246/0.1185, allocations: 295.4 kB / 390.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1187, allocations: 305.1 kB / 390.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.12, allocations: 0.7769 MB / 391.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/0.1218, allocations: 1.288 MB / 392.6 MB, free: 412 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.1252, allocations: 2.214 MB / 394.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/0.1252, allocations: 4 kB / 394.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004528/0.1297, allocations: 2.467 MB / 397.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.1297, allocations: 12 kB / 397.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.1298, allocations: 16 kB / 397.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007168/0.1305, allocations: 251.8 kB / 397.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.1321, allocations: 415.3 kB / 398 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/0.1353, allocations: 2.97 MB / 401 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002062/0.1373, allocations: 131.8 kB / 401.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.1375, allocations: 71.98 kB / 401.2 MB, free: 7.395 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001902/0.1394, allocations: 0.8257 MB / 402 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003583/0.1398, allocations: 182.8 kB / 402.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/0.1435, allocations: 2.018 MB / 404.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.1435, allocations: 19.94 kB / 404.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1435, allocations: 0 / 404.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.1435, allocations: 11.91 kB / 404.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008071/0.1516, allocations: 4.11 MB / 408.3 MB, free: 116 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.1516, allocations: 4.281 kB / 408.3 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.1528, allocations: 267.5 kB / 408.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000585/0.1534, allocations: 199.3 kB / 408.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.249e-05/0.1535, allocations: 27.98 kB / 408.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.1563, allocations: 2.951 MB / 411.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1563, allocations: 3.984 kB / 411.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005171/0.1615, allocations: 3.12 MB / 414.9 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.1626, allocations: 338.6 kB / 415.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.1629, allocations: 31.98 kB / 415.3 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.1639, allocations: 91.88 kB / 415.4 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.1641, allocations: 88.78 kB / 415.4 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.984e-05/0.1642, allocations: 35.98 kB / 415.5 MB, free: 8.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001814/0.166, allocations: 1.091 MB / 416.6 MB, free: 7.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.166, allocations: 4.062 kB / 416.6 MB, free: 7.617 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001626/0.1676, allocations: 495.9 kB / 417.1 MB, free: 7.133 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,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.0004414/0.168, allocations: 195 kB / 417.2 MB, free: 6.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003913/0.172, allocations: 2.121 MB / 419.4 MB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.172, allocations: 8.188 kB / 419.4 MB, free: 4.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.1739, allocations: 1.11 MB / 420.5 MB, free: 3.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.1764, allocations: 452.1 kB / 420.9 MB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008974/0.1854, allocations: 4.868 MB / 425.8 MB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.1872, allocations: 1.437 MB / 427.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.1886, allocations: 490.8 kB / 427.7 MB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004889/0.1891, allocations: 132.5 kB / 427.8 MB, free: 12.17 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1891, allocations: 0 / 427.8 MB, free: 12.17 MB / 398.1 MB Notification: Performance of Templates: time 0.04761/0.2367, allocations: 24.82 MB / 452.7 MB, free: 3.629 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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: 5.426405411213636]