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.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.001861/0.001861, allocations: 116.9 kB / 18.45 MB, free: 4.609 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.002363/0.002363, allocations: 216.3 kB / 21.41 MB, free: 1.648 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.512/1.512, allocations: 207.6 MB / 231.8 MB, free: 3.945 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.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: "" <> 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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 56.83 kB / 342.3 MB, free: 9.977 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1018, allocations: 49.13 MB / 391.4 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01514/0.1169, allocations: 13.4 MB / 404.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02635/0.1433, allocations: 19.39 MB / 424.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00342/0.1467, allocations: 189.8 kB / 424.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003458/0.1501, allocations: 1.096 MB / 425.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007513/0.1576, allocations: 2.258 MB / 427.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005253/0.1629, allocations: 1.377 MB / 429.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.1737, allocations: 6.246 MB / 435.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005973/0.1743, allocations: 248.5 kB / 435.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.1758, allocations: 1.015 MB / 436.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.177, allocations: 1.029 MB / 437.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.1772, allocations: 72 kB / 437.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.1808, allocations: 1.156 MB / 438.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003706/0.1811, allocations: 313.7 kB / 439.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.1826, allocations: 1.308 MB / 440.5 MB, free: 7.363 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005921/0.1885, allocations: 3.671 MB / 444.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1885, allocations: 4 kB / 444.2 MB, free: 3.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1885, allocations: 0 / 444.2 MB, free: 3.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.501e-05/0.1886, allocations: 0 / 444.2 MB, free: 3.672 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.005614/0.1942, allocations: 3.649 MB / 447.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.1943, allocations: 8.031 kB / 447.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.1944, allocations: 106.5 kB / 447.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005418/0.1949, allocations: 389.6 kB / 448.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.199, allocations: 2.551 MB / 450.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.1991, allocations: 37 kB / 450.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.1992, allocations: 59.88 kB / 450.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.2007, allocations: 0.6991 MB / 451.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2007, allocations: 4 kB / 451.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/0.2008, allocations: 20 kB / 451.7 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/0.2008, allocations: 19.98 kB / 451.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.2024, allocations: 0.7812 MB / 452.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005419/0.2078, allocations: 2.904 MB / 455.4 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.2092, allocations: 0.6428 MB / 456 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.2102, allocations: 0.565 MB / 456.6 MB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2115/0.4217, allocations: 30.14 MB / 486.7 MB, free: 46.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007817/0.4225, allocations: 371.1 kB / 487.1 MB, free: 46.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.145e-06/0.4225, allocations: 0 / 487.1 MB, free: 46.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003252/0.4258, allocations: 1.41 MB / 488.5 MB, free: 46.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4258, allocations: 62.16 kB / 488.6 MB, free: 46.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/0.4292, allocations: 2.818 MB / 491.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.215e-05/0.4293, allocations: 41.03 kB / 491.4 MB, free: 44.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008826/0.4301, allocations: 1.401 MB / 492.8 MB, free: 43.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.4303, allocations: 168.4 kB / 493 MB, free: 43.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.4306, allocations: 228.4 kB / 493.2 MB, free: 43.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.377e-05/0.4307, allocations: 337.3 kB / 493.5 MB, free: 42.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.4313, allocations: 239 kB / 493.8 MB, free: 42.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006498/0.432, allocations: 0.598 MB / 494.4 MB, free: 42.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.4331, allocations: 0.8714 MB / 495.2 MB, free: 41.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.4332, allocations: 3.906 kB / 495.2 MB, free: 41.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002251/0.4354, allocations: 1.292 MB / 496.5 MB, free: 40.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.4354, allocations: 10.06 kB / 496.5 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/0.4355, allocations: 83.44 kB / 496.6 MB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005142/0.436, allocations: 278.1 kB / 496.9 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.4366, allocations: 167.2 kB / 497.1 MB, free: 40.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000785/0.4373, allocations: 0.8797 MB / 497.9 MB, free: 39.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.4383, allocations: 116.5 kB / 498 MB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-05/0.4384, allocations: 59.53 kB / 498.1 MB, free: 39.9 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.0006507/0.4391, allocations: 436.8 kB / 498.5 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000302/0.4394, allocations: 385.6 kB / 498.9 MB, free: 39.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.4418, allocations: 1.257 MB / 0.4884 GB, free: 37.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4418, allocations: 8 kB / 0.4885 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4418, allocations: 0 / 0.4885 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4418, allocations: 4.812 kB / 0.4885 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.445, allocations: 2.192 MB / 0.4906 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.603e-05/0.445, allocations: 72 kB / 0.4907 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.4453, allocations: 64.06 kB / 0.4907 GB, free: 35.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000419/0.4458, allocations: 264 kB / 0.491 GB, free: 35.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.225e-05/0.4458, allocations: 43.36 kB / 0.491 GB, free: 35.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000738/0.4465, allocations: 0.8644 MB / 0.4919 GB, free: 34.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4465, allocations: 4.031 kB / 0.4919 GB, free: 34.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.4483, allocations: 1.146 MB / 0.493 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006605/0.449, allocations: 492.9 kB / 0.4935 GB, free: 32.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.4492, allocations: 15.92 kB / 0.4935 GB, free: 32.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.4498, allocations: 31.97 kB / 0.4935 GB, free: 32.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.45, allocations: 63.89 kB / 0.4936 GB, free: 32.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.499e-05/0.4501, allocations: 43.98 kB / 0.4936 GB, free: 32.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002008/0.4521, allocations: 1.832 MB / 0.4954 GB, free: 30.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4521, allocations: 0 / 0.4954 GB, free: 30.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001303/0.4534, allocations: 0.5717 MB / 0.496 GB, free: 30.07 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.002699/0.4561, allocations: 2.375 MB / 0.4983 GB, free: 27.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4577, allocations: 0.8267 MB / 0.4991 GB, free: 26.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4577, allocations: 0 / 0.4991 GB, free: 26.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007783/0.4585, allocations: 474.5 kB / 0.4995 GB, free: 26.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.4601, allocations: 0.5024 MB / 0.5 GB, free: 25.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/0.4775, allocations: 16.13 MB / 0.5158 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006919/0.4782, allocations: 1.612 MB / 0.5173 GB, free: 7.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008639/0.4791, allocations: 389.4 kB / 0.5177 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007898/0.4799, allocations: 1.14 MB / 0.5188 GB, free: 6.152 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4799, allocations: 0 / 0.5188 GB, free: 6.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/0.5996, allocations: 62.91 MB / 0.5803 GB, free: 7.105 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.25/19.85, allocations: 7.906 kB / 0.5803 GB, free: 7.098 MB / 446.1 MB " [Timeout remaining time 640] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98724e-11 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.65710290199786]