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.001433/0.001433, allocations: 70.42 kB / 21.24 MB, free: 0.5391 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.001482/0.001482, allocations: 158.5 kB / 24.5 MB, free: 3.711 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.437/1.437, allocations: 177.2 MB / 204.9 MB, free: 8.996 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 0.00158/0.00158, allocations: 51.08 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1008, allocations: 53.34 MB / 378.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01277/0.1136, allocations: 9.648 MB / 388.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006856/0.1205, allocations: 3.478 MB / 392 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.1215, allocations: 83.44 kB / 392.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001865/0.1234, allocations: 0.8034 MB / 392.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.1258, allocations: 0.9204 MB / 393.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009917/0.1268, allocations: 459.4 kB / 394.3 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003477/0.1303, allocations: 2.954 MB / 397.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002154/0.1324, allocations: 1.513 MB / 398.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.1344, allocations: 1.421 MB / 400.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.1368, allocations: 1.681 MB / 401.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005387/0.1374, allocations: 372 kB / 402.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009371/0.1383, allocations: 483.8 kB / 402.7 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.1395, allocations: 1.095 MB / 403.8 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.1411, allocations: 1.346 MB / 405.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005296/0.1464, allocations: 4.943 MB / 410.1 MB, free: 280 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1464, allocations: 0 / 410.1 MB, free: 280 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1464, allocations: 0 / 410.1 MB, free: 280 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.927e-05/0.1465, allocations: 4 kB / 410.1 MB, free: 276 kB / 366.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.006488/0.153, allocations: 3.398 MB / 413.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.153, allocations: 8.031 kB / 413.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008929/0.1539, allocations: 366.8 kB / 413.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003143/0.1571, allocations: 1.752 MB / 415.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.1572, allocations: 189.4 kB / 415.8 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003797/0.1576, allocations: 263.9 kB / 416 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005384/0.163, allocations: 3.355 MB / 419.4 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.605e-05/0.163, allocations: 7.938 kB / 419.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002311/0.1633, allocations: 112 kB / 419.5 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/0.1634, allocations: 124.9 kB / 419.6 MB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/0.1682, allocations: 2.74 MB / 422.4 MB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0158/0.184, allocations: 9.035 MB / 431.4 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.1861, allocations: 1.06 MB / 432.5 MB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1874, allocations: 0.7119 MB / 433.2 MB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.1876, allocations: 44.97 kB / 433.2 MB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.922e-05/0.1876, allocations: 47.56 kB / 433.3 MB, free: 8.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.705e-06/0.1876, allocations: 3.938 kB / 433.3 MB, free: 8.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01583/0.2035, allocations: 6.637 MB / 439.9 MB, free: 1.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.2035, allocations: 68.41 kB / 440 MB, free: 1.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.2061, allocations: 1.633 MB / 441.6 MB, free: 104 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.186e-05/0.2062, allocations: 45.7 kB / 441.7 MB, free: 52 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.2074, allocations: 1.329 MB / 443 MB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.2078, allocations: 448.2 kB / 443.4 MB, free: 14.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004973/0.2083, allocations: 299.4 kB / 443.7 MB, free: 13.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2084, allocations: 305.1 kB / 444 MB, free: 13.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.2098, allocations: 0.7808 MB / 444.8 MB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.2116, allocations: 1.288 MB / 446.1 MB, free: 11.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003265/0.2148, allocations: 2.214 MB / 448.3 MB, free: 8.926 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.2149, allocations: 4 kB / 448.3 MB, free: 8.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004544/0.2194, allocations: 2.475 MB / 450.8 MB, free: 6.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.2194, allocations: 12 kB / 450.8 MB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/0.2195, allocations: 16 kB / 450.8 MB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006622/0.2201, allocations: 235.2 kB / 451 MB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.2216, allocations: 415.6 kB / 451.4 MB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/0.2247, allocations: 2.982 MB / 454.4 MB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.2261, allocations: 139.8 kB / 454.6 MB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.2262, allocations: 68 kB / 454.6 MB, free: 2.359 MB / 414.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.001547/0.2278, allocations: 0.8211 MB / 455.5 MB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/0.2281, allocations: 182.8 kB / 455.6 MB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.2317, allocations: 2.022 MB / 457.7 MB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.2317, allocations: 12 kB / 457.7 MB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.2318, allocations: 0 / 457.7 MB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.2318, allocations: 7.969 kB / 457.7 MB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007444/0.2392, allocations: 4.118 MB / 461.8 MB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2392, allocations: 0 / 461.8 MB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.2404, allocations: 267.6 kB / 462.1 MB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005654/0.2409, allocations: 207.5 kB / 462.3 MB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.803e-05/0.241, allocations: 24 kB / 462.3 MB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.244, allocations: 2.958 MB / 465.2 MB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.244, allocations: 4.031 kB / 465.2 MB, free: 7.406 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005077/0.2491, allocations: 3.132 MB / 468.4 MB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.2501, allocations: 334.7 kB / 468.7 MB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.2503, allocations: 24.12 kB / 468.7 MB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000942/0.2513, allocations: 95.86 kB / 468.8 MB, free: 3.777 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.2514, allocations: 88.78 kB / 468.9 MB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.545e-05/0.2515, allocations: 32 kB / 468.9 MB, free: 3.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.2534, allocations: 1.102 MB / 470 MB, free: 2.562 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2534, allocations: 0 / 470 MB, free: 2.562 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00165/0.255, allocations: 487.9 kB / 470.5 MB, free: 2.086 MB / 430.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.0003908/0.2554, allocations: 202.2 kB / 470.7 MB, free: 1.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1815/0.4369, allocations: 2.114 MB / 472.8 MB, free: 84.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.4369, allocations: 0.5625 kB / 472.8 MB, free: 84.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001961/0.4388, allocations: 1.125 MB / 473.9 MB, free: 84.51 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.4413, allocations: 441.2 kB / 474.4 MB, free: 84.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.4522, allocations: 4.957 MB / 479.3 MB, free: 82.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002483/0.4547, allocations: 1.437 MB / 480.8 MB, free: 82.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002412/0.4571, allocations: 488.1 kB / 481.3 MB, free: 82.35 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005573/0.4576, allocations: 136.7 kB / 481.4 MB, free: 82.33 MB / 430.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4576, allocations: 0 / 481.4 MB, free: 82.33 MB / 430.1 MB Notification: Performance of Templates: time 0.0384/0.496, allocations: 25.02 MB / 0.4945 GB, free: 64.49 MB / 430.1 MB " [Timeout remaining time 659] 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/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.367385430028662]