Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001382/0.001382, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.001467/0.001467, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.476/1.476, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.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.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.849e-05, allocations: 2.281 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01961/0.01963, allocations: 9.669 MB / 334.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.03104, allocations: 3.494 MB / 338.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002541/0.03358, allocations: 85.34 kB / 338.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.0366, allocations: 0.8111 MB / 339.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004726/0.04132, allocations: 0.9512 MB / 340.1 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001913/0.04324, allocations: 465.2 kB / 340.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005217/0.04845, allocations: 3.042 MB / 343.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003071/0.05152, allocations: 1.505 MB / 345.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004707/0.05623, allocations: 2.074 MB / 347.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003368/0.0596, allocations: 1.52 MB / 348.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.06071, allocations: 372 kB / 349.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.06227, allocations: 479.8 kB / 349.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.06351, allocations: 1.114 MB / 350.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.06525, allocations: 1.134 MB / 351.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005919/0.07117, allocations: 4.958 MB / 356.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.07117, allocations: 0 / 356.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.07117, allocations: 4 kB / 356.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.947e-05/0.07127, allocations: 0 / 356.7 MB, free: 5.352 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.007243/0.07852, allocations: 3.37 MB / 360.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.07857, allocations: 15.97 kB / 360.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.07959, allocations: 362.8 kB / 360.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003427/0.08302, allocations: 1.751 MB / 362.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.08321, allocations: 189.4 kB / 362.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000451/0.08366, allocations: 256.2 kB / 362.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006279/0.08994, allocations: 3.363 MB / 366 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.297e-05/0.09001, allocations: 11.98 kB / 366 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000267/0.09028, allocations: 104 kB / 366.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.09043, allocations: 120.9 kB / 366.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00522/0.09565, allocations: 2.748 MB / 369 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01581/0.1115, allocations: 9.035 MB / 378 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.1134, allocations: 1.059 MB / 379.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.1147, allocations: 0.7148 MB / 379.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002465/0.115, allocations: 52.95 kB / 379.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.479e-05/0.1151, allocations: 39.56 kB / 379.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.737e-06/0.1151, allocations: 0 / 379.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01607/0.1311, allocations: 6.642 MB / 386.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.1312, allocations: 68.39 kB / 386.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00257/0.1338, allocations: 1.641 MB / 388.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.1339, allocations: 45.7 kB / 388.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.1349, allocations: 1.321 MB / 389.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/0.1353, allocations: 444.2 kB / 390.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004814/0.1358, allocations: 291.4 kB / 390.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1359, allocations: 305.1 kB / 390.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.1372, allocations: 0.7847 MB / 391.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.1389, allocations: 1.284 MB / 392.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003127/0.142, allocations: 2.214 MB / 394.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.142, allocations: 11.94 kB / 394.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004228/0.1462, allocations: 2.464 MB / 397.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.1463, allocations: 12 kB / 397.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/0.1463, allocations: 20 kB / 397.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006757/0.147, allocations: 239.2 kB / 397.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.1485, allocations: 423.6 kB / 398.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.1514, allocations: 2.978 MB / 401 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.1528, allocations: 127.8 kB / 401.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.1529, allocations: 75.97 kB / 401.2 MB, free: 7.477 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.001477/0.1544, allocations: 0.8321 MB / 402.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.1548, allocations: 186.8 kB / 402.3 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/0.1583, allocations: 2.014 MB / 404.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.1583, allocations: 16 kB / 404.3 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1583, allocations: 0 / 404.3 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.1583, allocations: 7.969 kB / 404.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007191/0.1655, allocations: 4.114 MB / 408.4 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1655, allocations: 0 / 408.4 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.1667, allocations: 263.6 kB / 408.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000552/0.1672, allocations: 211.5 kB / 408.9 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.729e-05/0.1673, allocations: 27.98 kB / 408.9 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002731/0.17, allocations: 2.942 MB / 411.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.17, allocations: 4 kB / 411.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004818/0.1749, allocations: 3.124 MB / 415 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008489/0.1757, allocations: 342.8 kB / 415.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002232/0.1759, allocations: 31.94 kB / 415.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009176/0.1769, allocations: 95.86 kB / 415.4 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.177, allocations: 84.78 kB / 415.5 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.1771, allocations: 35.98 kB / 415.6 MB, free: 8.781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001764/0.1789, allocations: 1.095 MB / 416.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1789, allocations: 0 / 416.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001673/0.1806, allocations: 487.9 kB / 417.1 MB, free: 7.215 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.000478/0.181, allocations: 203 kB / 417.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003922/0.185, allocations: 2.113 MB / 419.4 MB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.185, allocations: 4 kB / 419.4 MB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.187, allocations: 1.118 MB / 420.6 MB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002706/0.1897, allocations: 455.2 kB / 421 MB, free: 3.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009566/0.1992, allocations: 4.863 MB / 425.9 MB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002228/0.2015, allocations: 1.437 MB / 427.3 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001614/0.2031, allocations: 490.8 kB / 427.8 MB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.2036, allocations: 136.5 kB / 427.9 MB, free: 12.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2036, allocations: 0 / 427.9 MB, free: 12.25 MB / 398.1 MB Notification: Performance of Templates: time 0.04656/0.2502, allocations: 24.82 MB / 452.7 MB, free: 3.734 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.3734945096075535]