Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001754/0.001753, allocations: 119.9 kB / 17.74 MB, free: 5.344 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.001949/0.001949, allocations: 185.3 kB / 20.68 MB, free: 2.414 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.41/1.41, allocations: 222.9 MB / 246.4 MB, free: 4.203 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 47.92 kB / 357.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1049, allocations: 49.44 MB / 406.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01426/0.1192, allocations: 14.01 MB / 420.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2314/0.3506, allocations: 20.25 MB / 441.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002574/0.3532, allocations: 123 kB / 441.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003261/0.3565, allocations: 1.122 MB / 442.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007978/0.3645, allocations: 2.265 MB / 444.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005312/0.3699, allocations: 1.427 MB / 446.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009979/0.3798, allocations: 6.357 MB / 452.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007212/0.3806, allocations: 429.4 kB / 452.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.3824, allocations: 1.042 MB / 453.9 MB, free: 252 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.3836, allocations: 1.054 MB / 455 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001862/0.3838, allocations: 69.56 kB / 455.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004663/0.3884, allocations: 1.469 MB / 456.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003565/0.3888, allocations: 307.3 kB / 456.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.3904, allocations: 1.298 MB / 458.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.3964, allocations: 3.657 MB / 461.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3964, allocations: 0 / 461.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3964, allocations: 4 kB / 461.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.795e-05/0.3965, allocations: 0 / 461.8 MB, free: 14.19 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.005645/0.4021, allocations: 3.619 MB / 465.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4022, allocations: 8.969 kB / 465.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.4023, allocations: 97.48 kB / 465.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000501/0.4028, allocations: 396.4 kB / 465.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/0.4063, allocations: 2.536 MB / 468.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/0.4064, allocations: 32.16 kB / 468.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.4065, allocations: 51.61 kB / 468.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.4078, allocations: 0.7049 MB / 469.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4078, allocations: 6.469 kB / 469.2 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.483e-05/0.4079, allocations: 14.25 kB / 469.2 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.4079, allocations: 19.83 kB / 469.3 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.4094, allocations: 0.7942 MB / 470 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.4146, allocations: 2.891 MB / 472.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.416, allocations: 0.6912 MB / 473.6 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.4171, allocations: 0.651 MB / 474.3 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03308/0.4502, allocations: 30.1 MB / 0.4926 GB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000829/0.4511, allocations: 357.7 kB / 0.4929 GB, free: 2.852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.216e-06/0.4511, allocations: 0 / 0.4929 GB, free: 2.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003596/0.4547, allocations: 1.412 MB / 0.4943 GB, free: 1.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.4548, allocations: 61.91 kB / 0.4943 GB, free: 1.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003901/0.4587, allocations: 2.804 MB / 0.4971 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.667e-05/0.4587, allocations: 37.7 kB / 0.4971 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.4601, allocations: 1.394 MB / 0.4985 GB, free: 13.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.4603, allocations: 175.7 kB / 0.4986 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003254/0.4606, allocations: 230.3 kB / 0.4989 GB, free: 12.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.4608, allocations: 341.9 kB / 0.4992 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005906/0.4614, allocations: 233.9 kB / 0.4994 GB, free: 12.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009035/0.4623, allocations: 0.5861 MB / 0.5 GB, free: 11.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.4639, allocations: 0.8948 MB / 0.5009 GB, free: 10.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.4639, allocations: 4 kB / 0.5009 GB, free: 10.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00259/0.4665, allocations: 1.29 MB / 0.5021 GB, free: 8.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.4665, allocations: 10.19 kB / 0.5021 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/0.4667, allocations: 80.7 kB / 0.5022 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006056/0.4673, allocations: 289 kB / 0.5025 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/0.4679, allocations: 159.7 kB / 0.5026 GB, free: 8.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.469, allocations: 0.8928 MB / 0.5035 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4703, allocations: 111.3 kB / 0.5036 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4704, allocations: 64 kB / 0.5037 GB, free: 7.379 MB / 414.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.0008602/0.4713, allocations: 418.2 kB / 0.5041 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/0.4717, allocations: 381.6 kB / 0.5044 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.4746, allocations: 1.274 MB / 0.5057 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.4746, allocations: 4 kB / 0.5057 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4746, allocations: 0 / 0.5057 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.4747, allocations: 11.97 kB / 0.5057 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003943/0.4786, allocations: 2.196 MB / 0.5078 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.921e-05/0.4787, allocations: 68.12 kB / 0.5079 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.479, allocations: 71.88 kB / 0.508 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/0.4795, allocations: 258.9 kB / 0.5082 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.4796, allocations: 39.98 kB / 0.5083 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009988/0.4806, allocations: 0.8578 MB / 0.5091 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4806, allocations: 3.938 kB / 0.5091 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.4827, allocations: 1.149 MB / 0.5102 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008834/0.4836, allocations: 482.5 kB / 0.5107 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/0.4839, allocations: 8 kB / 0.5107 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000649/0.4845, allocations: 35.95 kB / 0.5107 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.4847, allocations: 63.89 kB / 0.5108 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.024e-05/0.4848, allocations: 36 kB / 0.5108 GB, free: 15.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.4873, allocations: 1.824 MB / 0.5126 GB, free: 14.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4873, allocations: 0 / 0.5126 GB, free: 14.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001459/0.4888, allocations: 0.5696 MB / 0.5132 GB, free: 13.49 MB / 430.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.003507/0.4923, allocations: 2.381 MB / 0.5155 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.4943, allocations: 0.8542 MB / 0.5163 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4943, allocations: 0 / 0.5163 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.4953, allocations: 498.8 kB / 0.5168 GB, free: 9.824 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/0.4986, allocations: 0.5929 MB / 0.5174 GB, free: 9.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/0.5237, allocations: 16.05 MB / 0.533 GB, free: 8.629 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.525, allocations: 1.6 MB / 0.5346 GB, free: 7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.5261, allocations: 386.9 kB / 0.535 GB, free: 6.617 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.5273, allocations: 1.124 MB / 0.5361 GB, free: 5.492 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5274, allocations: 0 / 0.5361 GB, free: 5.492 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1246/0.6519, allocations: 62.2 MB / 0.5968 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/19.69, allocations: 11.92 kB / 0.5968 GB, free: 7.637 MB / 0.4981 GB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.98033523489721]