Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.0007604/0.0007604, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001103/0.001864, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007496/0.0007496, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009976/0.001747, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8617/0.8617, allocations: 158.6 MB / 171.2 MB, free: 2.496 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1325/0.9942, allocations: 49.5 MB / 220.7 MB, free: 1.352 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 222 MB, free: 48 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.004e-05/1.1e-05, allocations: 2.312 kB / 222 MB, free: 44 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01147/0.01149, allocations: 10.59 MB / 232.6 MB, free: 5.402 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007983/0.01947, allocations: 3.769 MB / 236.4 MB, free: 1.617 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.02074, allocations: 75.44 kB / 236.4 MB, free: 1.543 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.0225, allocations: 0.8343 MB / 237.3 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002051/0.02455, allocations: 0.9429 MB / 238.2 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008427/0.02539, allocations: 483.1 kB / 238.7 MB, free: 15.28 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002897/0.02829, allocations: 3.056 MB / 241.7 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001657/0.02995, allocations: 1.52 MB / 243.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.03218, allocations: 2.66 MB / 245.9 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.03332, allocations: 1.5 MB / 247.4 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.03364, allocations: 360 kB / 247.8 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000532/0.03417, allocations: 451.9 kB / 248.2 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005084/0.03468, allocations: 0.8727 MB / 249.1 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000702/0.03538, allocations: 0.9162 MB / 250 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.03716, allocations: 2.445 MB / 252.4 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.03717, allocations: 0 / 252.4 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.03717, allocations: 0 / 252.4 MB, free: 1.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.595e-05/0.03721, allocations: 0 / 252.4 MB, free: 1.391 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.00321/0.04042, allocations: 3.677 MB / 256.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.736e-05/0.04045, allocations: 12.03 kB / 256.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006163/0.04106, allocations: 0.5016 MB / 256.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.04237, allocations: 1.202 MB / 257.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-05/0.04247, allocations: 189.4 kB / 258 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.04269, allocations: 252.3 kB / 258.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.04446, allocations: 1.862 MB / 260.1 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/0.04451, allocations: 19.88 kB / 260.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.04464, allocations: 100 kB / 260.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.985e-05/0.04473, allocations: 120.9 kB / 260.4 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009856/0.04572, allocations: 0.7472 MB / 261.1 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.05179, allocations: 6.938 MB / 268 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.05234, allocations: 0.514 MB / 268.6 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.05265, allocations: 272.4 kB / 268.8 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.05278, allocations: 52.97 kB / 268.9 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.05281, allocations: 39.56 kB / 268.9 MB, free: 284 kB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 2.405e-06/0.05281, allocations: 4 kB / 268.9 MB, free: 280 kB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004717/0.05753, allocations: 3.04 MB / 272 MB, free: 13.19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.05755, allocations: 64.41 kB / 272 MB, free: 13.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000782/0.05834, allocations: 1.176 MB / 273.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.05839, allocations: 45.7 kB / 273.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000423/0.05881, allocations: 1.093 MB / 274.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.05902, allocations: 444.2 kB / 274.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.05928, allocations: 279.3 kB / 275 MB, free: 10.06 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.928e-05/0.05934, allocations: 305.1 kB / 275.3 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.05957, allocations: 178.8 kB / 275.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.05999, allocations: 0.6874 MB / 276.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008285/0.06081, allocations: 1.116 MB / 277.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.06082, allocations: 4 kB / 277.3 MB, free: 7.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001106/0.06193, allocations: 1.035 MB / 278.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.06195, allocations: 15.94 kB / 278.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.06196, allocations: 16 kB / 278.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.06219, allocations: 128.2 kB / 278.5 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.06298, allocations: 403.4 kB / 278.9 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.06411, allocations: 2.43 MB / 281.3 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/0.06458, allocations: 67.98 kB / 281.4 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/0.06465, allocations: 59.98 kB / 281.5 MB, free: 2.941 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.0003464/0.06499, allocations: 212.2 kB / 281.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.06516, allocations: 143.8 kB / 281.8 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008767/0.06604, allocations: 0.7748 MB / 282.6 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.06604, allocations: 15.98 kB / 282.6 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.06605, allocations: 0 / 282.6 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.06606, allocations: 7.969 kB / 282.6 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1088/0.1749, allocations: 2.108 MB / 284.7 MB, free: 46.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.1749, allocations: 3.672 kB / 284.7 MB, free: 46.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000777/0.1757, allocations: 243.7 kB / 285 MB, free: 46.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009118/0.1766, allocations: 223 kB / 285.2 MB, free: 46.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005935/0.1772, allocations: 150.5 kB / 285.3 MB, free: 46.92 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/0.1772, allocations: 24.53 kB / 285.4 MB, free: 46.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.1783, allocations: 2.398 MB / 287.7 MB, free: 44.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.1784, allocations: 6.5 kB / 287.8 MB, free: 44.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.18, allocations: 1.106 MB / 288.9 MB, free: 44.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.1802, allocations: 24.86 kB / 288.9 MB, free: 44.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.1806, allocations: 41.09 kB / 288.9 MB, free: 44.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.1808, allocations: 85.94 kB / 289 MB, free: 44.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.1808, allocations: 25.3 kB / 289 MB, free: 44.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007365/0.1816, allocations: 0.5775 MB / 289.6 MB, free: 44.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1816, allocations: 0 / 289.6 MB, free: 44.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001453/0.183, allocations: 464.9 kB / 290.1 MB, free: 44.25 MB / 282.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 (120): * Single equations (assignments): 116 * 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.0003931/0.1834, allocations: 172 kB / 290.2 MB, free: 44.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.1849, allocations: 1.008 MB / 291.2 MB, free: 43.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.476e-05/0.185, allocations: 32.59 kB / 291.3 MB, free: 43.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008688/0.1859, allocations: 0.6677 MB / 291.9 MB, free: 43.65 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/0.1882, allocations: 4.331 MB / 296.3 MB, free: 39.26 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.2033, allocations: 4.237 MB / 300.5 MB, free: 37.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.2039, allocations: 0.5745 MB / 301.1 MB, free: 37.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0007195/0.2046, allocations: 248.7 kB / 301.3 MB, free: 37.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007299/0.2054, allocations: 459.2 kB / 301.8 MB, free: 37.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.793e-06/0.2054, allocations: 0 / 301.8 MB, free: 37.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02906/0.2344, allocations: 25.42 MB / 327.2 MB, free: 17.54 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3553901836276054]