Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001838/0.001838, allocations: 73.64 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001984/0.001984, allocations: 148.5 kB / 24.49 MB, free: 3.727 MB / 14.72 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.451/1.451, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 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.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 47.36 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08621/0.08775, allocations: 52.17 MB / 371.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0125/0.1003, allocations: 10.21 MB / 381.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005561/0.1058, allocations: 3.056 MB / 384.9 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.1065, allocations: 35.88 kB / 384.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.108, allocations: 0.6208 MB / 385.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001403/0.1094, allocations: 0.729 MB / 386.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.1102, allocations: 399.6 kB / 386.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002281/0.1124, allocations: 2.25 MB / 388.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009178/0.1134, allocations: 0.6029 MB / 389.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009966/0.1143, allocations: 0.8756 MB / 390.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.1154, allocations: 0.7733 MB / 391.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002758/0.1157, allocations: 220 kB / 391.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.1161, allocations: 248 kB / 391.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003531/0.1165, allocations: 438.4 kB / 392 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008434/0.1173, allocations: 0.8245 MB / 392.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002679/0.12, allocations: 2.708 MB / 395.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.12, allocations: 0 / 395.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.12, allocations: 0 / 395.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.12, allocations: 0 / 395.6 MB, free: 15.21 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003388/0.1234, allocations: 2.037 MB / 397.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1234, allocations: 12.92 kB / 397.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007642/0.1242, allocations: 259.6 kB / 397.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.1259, allocations: 0.9764 MB / 398.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.152e-05/0.126, allocations: 115.5 kB / 398.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002098/0.1262, allocations: 159.9 kB / 399.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002461/0.1286, allocations: 1.592 MB / 400.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.847e-05/0.1287, allocations: 7.953 kB / 400.7 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.1288, allocations: 64 kB / 400.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.1288, allocations: 36 kB / 400.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.1307, allocations: 0.9785 MB / 401.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008/0.1388, allocations: 5.709 MB / 407.5 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008939/0.1396, allocations: 380.7 kB / 407.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.1401, allocations: 206.3 kB / 408.1 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.1401, allocations: 4.5 kB / 408.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005763/0.1407, allocations: 321.2 kB / 408.4 MB, free: 1.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.355e-06/0.1407, allocations: 0 / 408.4 MB, free: 1.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003145/0.1438, allocations: 1.548 MB / 409.9 MB, free: 248 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1439, allocations: 162.7 kB / 410.1 MB, free: 44 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.1454, allocations: 1.118 MB / 411.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.1454, allocations: 37.7 kB / 411.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006837/0.1461, allocations: 0.9005 MB / 412.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.1463, allocations: 218.2 kB / 412.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002741/0.1466, allocations: 214.8 kB / 412.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1467, allocations: 357.9 kB / 412.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.1472, allocations: 256.2 kB / 413.2 MB, free: 12.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009854/0.1482, allocations: 0.9367 MB / 414.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.1496, allocations: 1.117 MB / 415.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.1496, allocations: 4 kB / 415.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001924/0.1516, allocations: 1.185 MB / 416.4 MB, free: 9.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.88e-05/0.1516, allocations: 41.7 kB / 416.4 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.1516, allocations: 16 kB / 416.5 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.1518, allocations: 65.7 kB / 416.5 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007901/0.1526, allocations: 280 kB / 416.8 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.1546, allocations: 2.516 MB / 419.3 MB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007642/0.1554, allocations: 72.12 kB / 419.4 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.23e-05/0.1555, allocations: 64 kB / 419.4 MB, free: 5.816 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004858/0.1559, allocations: 357.3 kB / 419.8 MB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.1561, allocations: 115.2 kB / 419.9 MB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.1571, allocations: 0.5418 MB / 420.5 MB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1571, allocations: 4 kB / 420.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1571, allocations: 0 / 420.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1571, allocations: 3.984 kB / 420.5 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.1595, allocations: 1.537 MB / 422 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.1595, allocations: 11.92 kB / 422 MB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000432/0.16, allocations: 111.8 kB / 422.1 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.1601, allocations: 42.17 kB / 422.2 MB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.1601, allocations: 20 kB / 422.2 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.162, allocations: 2.501 MB / 424.7 MB, free: 248 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.162, allocations: 12 kB / 424.7 MB, free: 236 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.1634, allocations: 0.8989 MB / 425.6 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/0.1637, allocations: 171.2 kB / 425.8 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.1638, allocations: 16 kB / 425.8 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/0.1643, allocations: 31.97 kB / 425.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.1644, allocations: 55.8 kB / 425.9 MB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.1644, allocations: 16 kB / 425.9 MB, free: 14.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009735/0.1654, allocations: 0.72 MB / 426.6 MB, free: 14.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1654, allocations: 0 / 426.6 MB, free: 14.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009813/0.1664, allocations: 300 kB / 426.9 MB, free: 13.96 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,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.0002091/0.1666, allocations: 139 kB / 427 MB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.168, allocations: 0.93 MB / 428 MB, free: 12.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.168, allocations: 0 / 428 MB, free: 12.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006853/0.1687, allocations: 462.3 kB / 428.4 MB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.17, allocations: 321.2 kB / 428.7 MB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.174, allocations: 2.532 MB / 431.2 MB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/0.1746, allocations: 0.5923 MB / 431.8 MB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.1751, allocations: 150.2 kB / 432 MB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.1753, allocations: 84.47 kB / 432.1 MB, free: 8.59 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1753, allocations: 0 / 432.1 MB, free: 8.59 MB / 398.1 MB Notification: Performance of Templates: time 0.02633/0.2016, allocations: 14.38 MB / 446.4 MB, free: 10.46 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.167719088029116]