Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.001348/0.001348, allocations: 119 kB / 18.45 MB, free: 4.605 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.001331/0.001331, allocations: 189.2 kB / 21.39 MB, free: 1.672 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.423/1.423, allocations: 207.6 MB / 231.8 MB, free: 4.109 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.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",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.001716/0.001716, allocations: 51.92 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09725, allocations: 49.11 MB / 391.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01389/0.1111, allocations: 13.41 MB / 404.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.1347, allocations: 19.39 MB / 424.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002401/0.1371, allocations: 122.9 kB / 424.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.1401, allocations: 1.093 MB / 425.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007552/0.1476, allocations: 2.262 MB / 427.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004672/0.1523, allocations: 1.373 MB / 429 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.1631, allocations: 6.25 MB / 435.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007185/0.1638, allocations: 248.5 kB / 435.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.1654, allocations: 0.9836 MB / 436.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.1666, allocations: 1.025 MB / 437.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.1668, allocations: 68 kB / 437.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003966/0.1707, allocations: 1.152 MB / 438.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003556/0.1711, allocations: 317.7 kB / 439 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.1724, allocations: 1.304 MB / 440.3 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005611/0.178, allocations: 3.675 MB / 444 MB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.178, allocations: 8 kB / 444 MB, free: 3.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.178, allocations: 0 / 444 MB, free: 3.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.573e-05/0.1781, allocations: 0 / 444 MB, free: 3.832 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005971/0.1841, allocations: 3.645 MB / 447.7 MB, free: 116 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1841, allocations: 8.031 kB / 447.7 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.1843, allocations: 98.5 kB / 447.8 MB, free: 0 / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004852/0.1847, allocations: 389.8 kB / 448.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004036/0.1888, allocations: 2.555 MB / 450.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.1888, allocations: 37 kB / 450.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.189, allocations: 55.89 kB / 450.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.1903, allocations: 0.6992 MB / 451.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1904, allocations: 0 / 451.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.131e-05/0.1904, allocations: 20 kB / 451.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.1905, allocations: 19.98 kB / 451.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.192, allocations: 0.7851 MB / 452.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005359/0.1973, allocations: 2.908 MB / 455.2 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.1987, allocations: 0.6389 MB / 455.9 MB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.1997, allocations: 0.5728 MB / 456.4 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1957/0.3954, allocations: 30.15 MB / 486.6 MB, free: 46.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006574/0.3961, allocations: 357.7 kB / 486.9 MB, free: 46.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.3961, allocations: 1.125 kB / 486.9 MB, free: 46.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002868/0.399, allocations: 1.405 MB / 488.3 MB, free: 46.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.399, allocations: 61.97 kB / 488.4 MB, free: 46.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00287/0.4019, allocations: 2.829 MB / 491.2 MB, free: 44.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.4019, allocations: 33.67 kB / 491.3 MB, free: 44.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007466/0.4027, allocations: 1.404 MB / 492.7 MB, free: 43.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.4028, allocations: 170.5 kB / 492.8 MB, free: 43.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.403, allocations: 224.4 kB / 493.1 MB, free: 43.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.4031, allocations: 337.8 kB / 493.4 MB, free: 42.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.4035, allocations: 246.4 kB / 493.6 MB, free: 42.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005558/0.4041, allocations: 0.5814 MB / 494.2 MB, free: 42.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.4051, allocations: 0.883 MB / 495.1 MB, free: 41.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.4051, allocations: 7.156 kB / 495.1 MB, free: 41.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001761/0.4069, allocations: 1.287 MB / 496.4 MB, free: 40.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.4069, allocations: 11.09 kB / 496.4 MB, free: 40.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.687e-05/0.407, allocations: 87.45 kB / 496.5 MB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004656/0.4075, allocations: 276 kB / 496.7 MB, free: 40.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/0.4079, allocations: 164 kB / 496.9 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006902/0.4086, allocations: 0.8826 MB / 497.8 MB, free: 40.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000834/0.4095, allocations: 113.7 kB / 497.9 MB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.86e-05/0.4096, allocations: 70.86 kB / 498 MB, free: 40.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0005377/0.4101, allocations: 417.8 kB / 498.4 MB, free: 39.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002255/0.4103, allocations: 393.5 kB / 498.8 MB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.4125, allocations: 1.264 MB / 0.4883 GB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.4125, allocations: 4 kB / 0.4883 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4125, allocations: 0 / 0.4883 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4125, allocations: 7.547 kB / 0.4883 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.4154, allocations: 2.188 MB / 0.4905 GB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.666e-05/0.4155, allocations: 71.94 kB / 0.4905 GB, free: 35.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.4158, allocations: 66.69 kB / 0.4906 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003505/0.4161, allocations: 267.6 kB / 0.4908 GB, free: 35.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.4162, allocations: 31.98 kB / 0.4909 GB, free: 35.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000609/0.4168, allocations: 0.8723 MB / 0.4917 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4168, allocations: 0 / 0.4917 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.4181, allocations: 1.147 MB / 0.4928 GB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.4188, allocations: 0.4886 MB / 0.4933 GB, free: 32.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.4191, allocations: 8 kB / 0.4933 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.4197, allocations: 27.97 kB / 0.4934 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.4198, allocations: 63.94 kB / 0.4934 GB, free: 32.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.538e-05/0.4199, allocations: 36.88 kB / 0.4935 GB, free: 32.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.4216, allocations: 1.836 MB / 0.4952 GB, free: 30.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4216, allocations: 0 / 0.4952 GB, free: 30.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001102/0.4227, allocations: 0.5717 MB / 0.4958 GB, free: 30.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002286/0.425, allocations: 2.383 MB / 0.4981 GB, free: 28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.4264, allocations: 0.8228 MB / 0.4989 GB, free: 27.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4264, allocations: 0 / 0.4989 GB, free: 27.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007138/0.4271, allocations: 466.3 kB / 0.4994 GB, free: 26.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.4285, allocations: 0.5166 MB / 0.4999 GB, free: 26.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/0.4449, allocations: 16.13 MB / 0.5156 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006443/0.4455, allocations: 1.612 MB / 0.5172 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008941/0.4464, allocations: 393.5 kB / 0.5176 GB, free: 7.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007779/0.4472, allocations: 1.128 MB / 0.5187 GB, free: 6.379 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4472, allocations: 0 / 0.5187 GB, free: 6.379 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1156/0.5628, allocations: 62.91 MB / 0.5801 GB, free: 7.328 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.75/19.32, allocations: 7.922 kB / 0.5801 GB, free: 7.32 MB / 446.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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: 22.74581042677164]