Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.001246/0.001246, allocations: 119.8 kB / 18.45 MB, free: 4.457 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.001283/0.001283, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 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 1.513/1.513, allocations: 207.6 MB / 231.8 MB, free: 4.227 MB / 174.1 MB " [Timeout remaining time 178] 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.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 55.92 kB / 342.3 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1128, allocations: 49.13 MB / 391.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01533/0.1281, allocations: 11.73 MB / 403.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007059/0.1352, allocations: 3.235 MB / 406.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.1365, allocations: 39.88 kB / 406.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001927/0.1384, allocations: 0.6713 MB / 407.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.1403, allocations: 0.7251 MB / 407.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000922/0.1413, allocations: 403.5 kB / 408.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002669/0.1439, allocations: 2.234 MB / 410.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.1451, allocations: 0.6531 MB / 411.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1463, allocations: 0.8482 MB / 411.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.1475, allocations: 0.9139 MB / 412.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.1477, allocations: 220 kB / 413 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000469/0.1482, allocations: 256 kB / 413.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004295/0.1486, allocations: 430.4 kB / 413.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.1497, allocations: 1.015 MB / 414.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.1528, allocations: 2.693 MB / 417.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1528, allocations: 0 / 417.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1528, allocations: 0 / 417.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.172e-05/0.1528, allocations: 4 kB / 417.4 MB, free: 14.54 MB / 350.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.003948/0.1568, allocations: 2.113 MB / 419.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.1568, allocations: 8.031 kB / 419.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002688/0.1571, allocations: 220.1 kB / 419.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008176/0.1579, allocations: 267.6 kB / 420 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.1598, allocations: 1.056 MB / 421.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.16, allocations: 123.2 kB / 421.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002186/0.1602, allocations: 159.9 kB / 421.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/0.1628, allocations: 1.483 MB / 422.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.127e-05/0.1628, allocations: 11.95 kB / 422.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.163, allocations: 64 kB / 422.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-05/0.163, allocations: 47.92 kB / 423 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.165, allocations: 0.9707 MB / 423.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009111/0.1741, allocations: 6.522 MB / 430.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008477/0.1749, allocations: 388.1 kB / 430.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.1754, allocations: 209.9 kB / 431 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-05/0.1754, allocations: 4.438 kB / 431 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005974/0.176, allocations: 268.8 kB / 431.3 MB, free: 76 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.454e-06/0.176, allocations: 0 / 431.3 MB, free: 76 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003844/0.1799, allocations: 1.792 MB / 433.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.18, allocations: 158.8 kB / 433.2 MB, free: 14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/0.1819, allocations: 1.277 MB / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.182, allocations: 37.7 kB / 434.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008158/0.1828, allocations: 0.8933 MB / 435.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.183, allocations: 214.3 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003481/0.1833, allocations: 226.8 kB / 435.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.1835, allocations: 353.9 kB / 436.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.184, allocations: 226.5 kB / 436.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.1851, allocations: 0.8034 MB / 437.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.1868, allocations: 1.118 MB / 438.4 MB, free: 8.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.1868, allocations: 7.938 kB / 438.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002137/0.1889, allocations: 1.177 MB / 439.6 MB, free: 7.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.327e-05/0.189, allocations: 45.59 kB / 439.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.189, allocations: 23.94 kB / 439.6 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002835/0.1893, allocations: 69.7 kB / 439.7 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008216/0.1901, allocations: 275.9 kB / 440 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.1929, allocations: 2.769 MB / 442.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009633/0.1938, allocations: 59.94 kB / 442.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.47e-05/0.1939, allocations: 71.92 kB / 442.9 MB, free: 3.48 MB / 366.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.0007148/0.1946, allocations: 357.3 kB / 443.2 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.1948, allocations: 143 kB / 443.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.196, allocations: 0.5489 MB / 443.9 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.196, allocations: 4 kB / 443.9 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.196, allocations: 0 / 443.9 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.196, allocations: 7.984 kB / 443.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.1993, allocations: 1.858 MB / 445.8 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1993, allocations: 4.469 kB / 445.8 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.1997, allocations: 107.8 kB / 445.9 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.1999, allocations: 49.69 kB / 445.9 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.1999, allocations: 16 kB / 445.9 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.2025, allocations: 2.753 MB / 448.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.2025, allocations: 7.938 kB / 448.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.204, allocations: 0.9286 MB / 449.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004566/0.2045, allocations: 264.2 kB / 449.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.2046, allocations: 19.94 kB / 449.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.2051, allocations: 31.97 kB / 449.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.2052, allocations: 63.59 kB / 450 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.2053, allocations: 16 kB / 450 MB, free: 11.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001345/0.2066, allocations: 0.8461 MB / 450.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2066, allocations: 0 / 450.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001258/0.2079, allocations: 307.9 kB / 451.2 MB, free: 10.65 MB / 382.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.002033/0.2099, allocations: 1.501 MB / 452.7 MB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.2116, allocations: 0.8926 MB / 453.6 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2116, allocations: 1.938 kB / 453.6 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007305/0.2123, allocations: 466.3 kB / 454 MB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.2137, allocations: 336.9 kB / 454.3 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2101/0.4238, allocations: 10.93 MB / 465.3 MB, free: 61.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/0.4245, allocations: 1.176 MB / 466.5 MB, free: 60.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005858/0.4251, allocations: 172 kB / 466.6 MB, free: 60.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005406/0.4257, allocations: 0.567 MB / 467.2 MB, free: 60.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4257, allocations: 0 / 467.2 MB, free: 60.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06401/0.4897, allocations: 27.97 MB / 495.2 MB, free: 42.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.46, allocations: 8.047 kB / 495.2 MB, free: 42.76 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.353676612023264]