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.001862/0.001862, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.00184/0.00184, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 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 1.507/1.507, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.513e-06/1.513e-06, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.652e-05/2.803e-05, allocations: 6.25 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01552/0.01555, allocations: 10.69 MB / 278 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007784/0.02333, allocations: 3.556 MB / 281.6 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.02495, allocations: 83.44 kB / 281.7 MB, free: 8.305 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002258/0.02721, allocations: 0.8149 MB / 282.5 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002936/0.03014, allocations: 0.9507 MB / 283.4 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.03124, allocations: 459.2 kB / 283.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004341/0.03558, allocations: 3.046 MB / 286.9 MB, free: 3.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002426/0.03801, allocations: 1.513 MB / 288.4 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1187/0.1567, allocations: 2.079 MB / 290.5 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.1595, allocations: 1.641 MB / 292.2 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006038/0.1601, allocations: 374 kB / 292.5 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.1611, allocations: 471.4 kB / 293 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009935/0.1621, allocations: 1.139 MB / 294.1 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.1635, allocations: 1.144 MB / 295.3 MB, free: 17.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005766/0.1693, allocations: 4.978 MB / 300.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1693, allocations: 1.031 kB / 300.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1693, allocations: 0 / 300.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001495/0.1694, allocations: 0 / 300.3 MB, free: 16.96 MB / 266.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.007802/0.1772, allocations: 3.826 MB / 304.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1773, allocations: 9.141 kB / 304.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.1785, allocations: 0.5527 MB / 304.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.1815, allocations: 1.706 MB / 306.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.1816, allocations: 191.6 kB / 306.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/0.1819, allocations: 252.2 kB / 306.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004433/0.1864, allocations: 3.056 MB / 309.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-05/0.1864, allocations: 4.875 kB / 309.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.1866, allocations: 107.9 kB / 309.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.1868, allocations: 122.9 kB / 310.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003359/0.1901, allocations: 1.971 MB / 312 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01501/0.2051, allocations: 11.63 MB / 323.7 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.2067, allocations: 0.6764 MB / 324.3 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009848/0.2076, allocations: 419.6 kB / 324.8 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002554/0.2079, allocations: 60.09 kB / 324.8 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.2079, allocations: 49.95 kB / 324.9 MB, free: 14.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 3.757e-06/0.208, allocations: 4 kB / 324.9 MB, free: 14.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.01192/0.2199, allocations: 4.072 MB / 328.9 MB, free: 9.965 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.2199, allocations: 68.41 kB / 329 MB, free: 9.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003163/0.2231, allocations: 1.973 MB / 331 MB, free: 7.895 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.2232, allocations: 45.7 kB / 331 MB, free: 7.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/0.2246, allocations: 1.498 MB / 332.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004999/0.2251, allocations: 489.3 kB / 333 MB, free: 5.871 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006144/0.2257, allocations: 357.1 kB / 333.3 MB, free: 5.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.226, allocations: 476.8 kB / 333.8 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008551/0.2268, allocations: 375.8 kB / 334.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.2285, allocations: 1.16 MB / 335.3 MB, free: 3.219 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.2311, allocations: 1.682 MB / 337 MB, free: 1.293 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/0.2311, allocations: 10.92 kB / 337 MB, free: 1.285 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003632/0.2348, allocations: 1.687 MB / 338.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.2348, allocations: 16 kB / 338.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/0.2348, allocations: 16 kB / 338.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005955/0.2354, allocations: 146.9 kB / 338.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.2369, allocations: 417.6 kB / 339.3 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.2405, allocations: 3.696 MB / 343 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.242, allocations: 127.8 kB / 343.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.2421, allocations: 75.66 kB / 343.2 MB, free: 10.99 MB / 298.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 {(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.001491/0.2436, allocations: 0.6371 MB / 343.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005213/0.2441, allocations: 226.8 kB / 344.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.247, allocations: 1.173 MB / 345.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.247, allocations: 19.27 kB / 345.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.247, allocations: 0 / 345.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.247, allocations: 3.984 kB / 345.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008637/0.2557, allocations: 3.873 MB / 349.1 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.2557, allocations: 0 / 349.1 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.2568, allocations: 270.2 kB / 349.4 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005139/0.2574, allocations: 119.2 kB / 349.5 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-05/0.2575, allocations: 27.98 kB / 349.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.2608, allocations: 3.678 MB / 353.2 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.2608, allocations: 7.188 kB / 353.2 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003713/0.2645, allocations: 1.735 MB / 354.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.2655, allocations: 318.7 kB / 355.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.2658, allocations: 27.94 kB / 355.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/0.2667, allocations: 91.88 kB / 355.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.2669, allocations: 99.14 kB / 355.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-05/0.267, allocations: 32 kB / 355.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002029/0.269, allocations: 1.098 MB / 356.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.269, allocations: 0 / 356.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001823/0.2709, allocations: 487.9 kB / 357.1 MB, free: 12.75 MB / 314.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 {(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.0004229/0.2713, allocations: 200 kB / 357.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003172/0.2745, allocations: 1.579 MB / 358.9 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.2745, allocations: 0 / 358.9 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.2762, allocations: 0.9375 MB / 359.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.2783, allocations: 453.6 kB / 360.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008164/0.2865, allocations: 4.37 MB / 364.6 MB, free: 5.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001793/0.2883, allocations: 1.356 MB / 366 MB, free: 3.766 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00128/0.2896, allocations: 382.8 kB / 366.3 MB, free: 3.387 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004506/0.29, allocations: 136.5 kB / 366.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.29, allocations: 0 / 366.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of Templates: time 0.04867/0.3387, allocations: 24.82 MB / 391.3 MB, free: 10.85 MB / 346.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.519184375996701]