Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.0008147/0.0008147, allocations: 80 kB / 21.43 MB, free: 3.133 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.003938/0.003938, allocations: 142.8 kB / 24.68 MB, free: 9.414 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.8381/0.8381, allocations: 173.4 MB / 201.2 MB, free: 9.414 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 319.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.303e-05/3.515e-05, allocations: 2.281 kB / 319.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01087/0.01091, allocations: 13.26 MB / 333 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008681/0.01959, allocations: 4.835 MB / 337.8 MB, free: 3.516 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003169/0.02276, allocations: 119.3 kB / 337.9 MB, free: 3.398 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003413/0.02617, allocations: 1.075 MB / 339 MB, free: 2.316 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.03056, allocations: 1.335 MB / 340.3 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002301/0.03286, allocations: 0.8715 MB / 341.2 MB, free: 100 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004889/0.03775, allocations: 3.769 MB / 345 MB, free: 12.31 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002969/0.04072, allocations: 1.835 MB / 346.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004125/0.04485, allocations: 2.604 MB / 349.4 MB, free: 7.797 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002745/0.04759, allocations: 1.726 MB / 351.2 MB, free: 6.066 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009377/0.04853, allocations: 476 kB / 351.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.04998, allocations: 0.6714 MB / 352.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007448/0.05073, allocations: 1.18 MB / 353.5 MB, free: 3.746 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.05246, allocations: 1.372 MB / 354.8 MB, free: 2.371 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005701/0.05816, allocations: 6.326 MB / 361.2 MB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.05817, allocations: 7.922 kB / 361.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.05817, allocations: 0 / 361.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001367/0.05831, allocations: 3.938 kB / 361.2 MB, free: 12.02 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.007374/0.06568, allocations: 4.213 MB / 365.4 MB, free: 7.742 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.06573, allocations: 8.922 kB / 365.4 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001621/0.06735, allocations: 0.6388 MB / 366 MB, free: 7.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002895/0.07025, allocations: 2.194 MB / 368.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.07038, allocations: 234.7 kB / 368.5 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003173/0.07069, allocations: 312.3 kB / 368.8 MB, free: 4.316 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004967/0.07566, allocations: 4.123 MB / 372.9 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.594e-05/0.07573, allocations: 3.938 kB / 372.9 MB, free: 112 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.07594, allocations: 132.1 kB / 373 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.07605, allocations: 146.2 kB / 373.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004359/0.08041, allocations: 3.382 MB / 376.5 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.0959, allocations: 11.27 MB / 387.8 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.09817, allocations: 1.666 MB / 389.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.09924, allocations: 0.8985 MB / 390.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003373/0.1026, allocations: 2.094 MB / 392.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.1026, allocations: 43.56 kB / 392.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 3.987e-06/0.1027, allocations: 4 kB / 392.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.008684/0.1113, allocations: 5.807 MB / 398.3 MB, free: 6.238 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1114, allocations: 64.72 kB / 398.4 MB, free: 6.164 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.1136, allocations: 1.732 MB / 400.1 MB, free: 4.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/0.1137, allocations: 45.7 kB / 400.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.1146, allocations: 1.571 MB / 401.7 MB, free: 2.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000314/0.115, allocations: 0.4958 MB / 402.2 MB, free: 2.293 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003507/0.1153, allocations: 331.4 kB / 402.6 MB, free: 1.965 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.1154, allocations: 301.1 kB / 402.8 MB, free: 1.668 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008587/0.1162, allocations: 0.7691 MB / 403.6 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.1176, allocations: 1.404 MB / 405 MB, free: 15.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/0.1197, allocations: 2.312 MB / 407.3 MB, free: 12.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.1197, allocations: 8 kB / 407.3 MB, free: 12.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00345/0.1232, allocations: 2.47 MB / 409.8 MB, free: 10.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.1232, allocations: 12 kB / 409.8 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.764e-05/0.1233, allocations: 20 kB / 409.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003157/0.1236, allocations: 127.1 kB / 410 MB, free: 9.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.1248, allocations: 479.2 kB / 410.4 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.1261, allocations: 1.283 MB / 411.7 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.1275, allocations: 111.8 kB / 411.8 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.1276, allocations: 87.98 kB / 411.9 MB, free: 7.926 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001795/0.1294, allocations: 0.9773 MB / 412.9 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/0.1298, allocations: 198.7 kB / 413.1 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.1322, allocations: 1.948 MB / 415 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.1322, allocations: 16 kB / 415 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1322, allocations: 0 / 415 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.1322, allocations: 11.97 kB / 415.1 MB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/0.1377, allocations: 4.215 MB / 419.3 MB, free: 464 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.1377, allocations: 4.25 kB / 419.3 MB, free: 460 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007277/0.1384, allocations: 311.5 kB / 419.6 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002103/0.1387, allocations: 94.53 kB / 419.7 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.1387, allocations: 27.98 kB / 419.7 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008489/0.1396, allocations: 1.248 MB / 420.9 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1396, allocations: 0 / 420.9 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/0.143, allocations: 3.079 MB / 424 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008754/0.1438, allocations: 362.6 kB / 424.4 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.144, allocations: 32 kB / 424.4 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000583/0.1446, allocations: 84.03 kB / 424.5 MB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.1447, allocations: 93.14 kB / 424.6 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.1448, allocations: 35.98 kB / 424.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001826/0.1466, allocations: 1.152 MB / 425.8 MB, free: 9.789 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1466, allocations: 0 / 425.8 MB, free: 9.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001667/0.1483, allocations: 0.5312 MB / 426.3 MB, free: 9.258 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000396/0.1487, allocations: 178 kB / 426.5 MB, free: 9.082 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002799/0.1515, allocations: 1.975 MB / 428.5 MB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.1515, allocations: 0 / 428.5 MB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.1525, allocations: 0.9581 MB / 429.4 MB, free: 6.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.1541, allocations: 459.8 kB / 429.9 MB, free: 5.672 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009212/0.1633, allocations: 5.621 MB / 435.5 MB, free: 15.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.1651, allocations: 1.666 MB / 437.1 MB, free: 14.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007251/0.1658, allocations: 164.5 kB / 437.3 MB, free: 14.11 MB / 410.7 MB Notification: Performance of SimCode: time 2.044e-06/0.1658, allocations: 0 / 437.3 MB, free: 14.11 MB / 410.7 MB Notification: Performance of Templates: time 0.1976/0.3633, allocations: 86.39 MB / 0.5114 GB, free: 55.98 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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: 7.5230752462521195]