Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.001009/0.001009, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001716/0.001716, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9871/0.9871, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_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.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.664e-05/1.808e-05, allocations: 5.922 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008757/0.008775, allocations: 10.48 MB / 279.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006014/0.01479, allocations: 3.534 MB / 283.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.01627, allocations: 87.44 kB / 283.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.01815, allocations: 0.8071 MB / 284.1 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.02061, allocations: 0.9623 MB / 285.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009389/0.02155, allocations: 463.2 kB / 285.5 MB, free: 9.406 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003053/0.0246, allocations: 3.042 MB / 288.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.02624, allocations: 1.521 MB / 290.1 MB, free: 4.766 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002808/0.02905, allocations: 2.503 MB / 292.6 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.03063, allocations: 1.5 MB / 294.1 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004755/0.0311, allocations: 360 kB / 294.5 MB, free: 412 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006378/0.03174, allocations: 447.9 kB / 294.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009144/0.03266, allocations: 1.059 MB / 295.9 MB, free: 14.9 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000943/0.0336, allocations: 1.107 MB / 297.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.03588, allocations: 2.612 MB / 299.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.03589, allocations: 0 / 299.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.03589, allocations: 0 / 299.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.357e-05/0.03593, allocations: 4 kB / 299.7 MB, free: 11.17 MB / 282.7 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.00389/0.03982, allocations: 3.366 MB / 303 MB, free: 7.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.03986, allocations: 12.03 kB / 303 MB, free: 7.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006926/0.04055, allocations: 0.5573 MB / 303.6 MB, free: 7.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.04231, allocations: 1.676 MB / 305.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-05/0.04241, allocations: 189.4 kB / 305.5 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.04263, allocations: 248.3 kB / 305.7 MB, free: 5.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.04467, allocations: 1.825 MB / 307.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.04472, allocations: 7.984 kB / 307.5 MB, free: 3.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.04486, allocations: 108 kB / 307.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-05/0.04495, allocations: 124.9 kB / 307.8 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.04604, allocations: 0.7438 MB / 308.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009169/0.05521, allocations: 8.398 MB / 316.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009073/0.05611, allocations: 0.5115 MB / 317.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004998/0.05661, allocations: 298.8 kB / 317.7 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.05675, allocations: 44.98 kB / 317.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.05677, allocations: 46.39 kB / 317.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 2.405e-06/0.05678, allocations: 0 / 317.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=123): time 0.004524/0.0613, allocations: 2.833 MB / 320.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.06133, allocations: 68.39 kB / 320.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.06236, allocations: 1.386 MB / 322.1 MB, free: 4.023 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.06242, allocations: 45.7 kB / 322.1 MB, free: 3.973 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006489/0.06306, allocations: 1.418 MB / 323.6 MB, free: 2.543 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.06353, allocations: 456.2 kB / 324 MB, free: 2.094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.06382, allocations: 309 kB / 324.3 MB, free: 1.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.06391, allocations: 476.8 kB / 324.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.06415, allocations: 183.8 kB / 324.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005477/0.0647, allocations: 0.9182 MB / 325.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009443/0.06564, allocations: 1.27 MB / 327.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.06565, allocations: 4 kB / 327.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001457/0.0671, allocations: 1.295 MB / 328.4 MB, free: 13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.06713, allocations: 19.92 kB / 328.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.06714, allocations: 16 kB / 328.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.06739, allocations: 126.6 kB / 328.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007355/0.06812, allocations: 359.8 kB / 328.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.06979, allocations: 3.517 MB / 332.5 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005232/0.07032, allocations: 55.89 kB / 332.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/0.07038, allocations: 59.98 kB / 332.6 MB, free: 8.613 MB / 314.7 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 {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005172/0.0709, allocations: 256.1 kB / 332.8 MB, free: 8.352 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.07119, allocations: 230.8 kB / 333.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.07263, allocations: 0.9084 MB / 334 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.07264, allocations: 12 kB / 334 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.07265, allocations: 4 kB / 334 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.07266, allocations: 3.984 kB / 334 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/0.07634, allocations: 2.475 MB / 336.5 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.07634, allocations: 4 kB / 336.5 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000677/0.07702, allocations: 207.7 kB / 336.7 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000256/0.07728, allocations: 94.67 kB / 336.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.07734, allocations: 27.98 kB / 336.8 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.07912, allocations: 3.477 MB / 340.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.07912, allocations: 7.938 kB / 340.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.08084, allocations: 1.327 MB / 341.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004357/0.08127, allocations: 274.7 kB / 341.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.08143, allocations: 27.98 kB / 341.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004946/0.08193, allocations: 40.02 kB / 341.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.08206, allocations: 80.78 kB / 342 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.08212, allocations: 24 kB / 342 MB, free: 14.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007448/0.08286, allocations: 0.7427 MB / 342.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08286, allocations: 0 / 342.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001201/0.08406, allocations: 463.9 kB / 343.2 MB, free: 13.5 MB / 330.7 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 {(1,2,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.0002987/0.08436, allocations: 194.9 kB / 343.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.08583, allocations: 1.173 MB / 344.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.08583, allocations: 0 / 344.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009855/0.08681, allocations: 0.7454 MB / 345.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.08822, allocations: 459.4 kB / 345.8 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005824/0.09405, allocations: 4.139 MB / 349.9 MB, free: 6.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.09471, allocations: 0.6417 MB / 350.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008574/0.09557, allocations: 247.1 kB / 350.8 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009459/0.09651, allocations: 0.5018 MB / 351.3 MB, free: 5.195 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.09652, allocations: 0 / 351.3 MB, free: 5.195 MB / 330.7 MB Notification: Performance of Templates: time 0.1394/0.2359, allocations: 25.18 MB / 376.5 MB, free: 74.68 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.568028368987143]