Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 120.4 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 211.2 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002734/0.002734, allocations: 59.91 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2813, allocations: 53.4 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01475/0.2961, allocations: 14.09 MB / 445.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02567/0.3218, allocations: 20.37 MB / 465.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002279/0.324, allocations: 189.8 kB / 465.8 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003456/0.3275, allocations: 1.134 MB / 467 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007716/0.3352, allocations: 2.327 MB / 469.3 MB, free: 464 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004742/0.34, allocations: 1.445 MB / 470.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01073/0.3507, allocations: 6.478 MB / 477.2 MB, free: 8.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006926/0.3514, allocations: 249 kB / 477.4 MB, free: 8.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001741/0.3531, allocations: 1.108 MB / 478.6 MB, free: 7.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.3546, allocations: 1.056 MB / 479.6 MB, free: 6.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.3548, allocations: 68 kB / 479.7 MB, free: 5.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004024/0.3588, allocations: 1.479 MB / 481.2 MB, free: 4.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003539/0.3592, allocations: 309.7 kB / 481.5 MB, free: 4.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.3607, allocations: 1.296 MB / 482.8 MB, free: 2.898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005711/0.3664, allocations: 3.659 MB / 486.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3664, allocations: 0 / 486.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3664, allocations: 0 / 486.4 MB, free: 15.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.621e-05/0.3664, allocations: 0 / 486.4 MB, free: 15.22 MB / 398.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.005665/0.3721, allocations: 3.547 MB / 490 MB, free: 11.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.3721, allocations: 12.03 kB / 490 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.3723, allocations: 90.52 kB / 490.1 MB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004954/0.3728, allocations: 393.5 kB / 490.4 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004041/0.3768, allocations: 2.355 MB / 492.8 MB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.3768, allocations: 37 kB / 492.8 MB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.377, allocations: 47.95 kB / 492.9 MB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3783, allocations: 0.7031 MB / 493.6 MB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.3783, allocations: 7.938 kB / 493.6 MB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.769e-05/0.3784, allocations: 23.98 kB / 493.6 MB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3784, allocations: 23.98 kB / 493.6 MB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.38, allocations: 0.7889 MB / 494.4 MB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00562/0.3856, allocations: 2.824 MB / 497.3 MB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.3869, allocations: 0.5632 MB / 497.8 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.3879, allocations: 0.5848 MB / 498.4 MB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/0.4145, allocations: 13.77 MB / 0.5002 GB, free: 4.848 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008009/0.4153, allocations: 361.6 kB / 0.5005 GB, free: 4.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/0.4153, allocations: 0 / 0.5005 GB, free: 4.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003377/0.4187, allocations: 1.322 MB / 0.5018 GB, free: 3.152 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.4187, allocations: 59.41 kB / 0.5019 GB, free: 3.082 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/0.4222, allocations: 2.799 MB / 0.5046 GB, free: 268 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.529e-05/0.4223, allocations: 33.7 kB / 0.5046 GB, free: 228 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001294/0.4236, allocations: 1.396 MB / 0.506 GB, free: 14.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.4238, allocations: 178.5 kB / 0.5062 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.4241, allocations: 222.4 kB / 0.5064 GB, free: 14.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4242, allocations: 337.9 kB / 0.5067 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005756/0.4248, allocations: 245.8 kB / 0.5069 GB, free: 13.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008364/0.4256, allocations: 0.5888 MB / 0.5075 GB, free: 13.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.4271, allocations: 0.8802 MB / 0.5084 GB, free: 12.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.4271, allocations: 4 kB / 0.5084 GB, free: 12.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002342/0.4294, allocations: 1.277 MB / 0.5096 GB, free: 10.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4295, allocations: 12.94 kB / 0.5096 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.4296, allocations: 80 kB / 0.5097 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005666/0.4301, allocations: 280.7 kB / 0.51 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005755/0.4307, allocations: 171.7 kB / 0.5101 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.4317, allocations: 0.8842 MB / 0.511 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009889/0.4327, allocations: 119.2 kB / 0.5111 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4328, allocations: 60 kB / 0.5112 GB, free: 9.125 MB / 430.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.0007529/0.4336, allocations: 418.2 kB / 0.5116 GB, free: 8.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003898/0.434, allocations: 377.7 kB / 0.5119 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002772/0.4367, allocations: 1.263 MB / 0.5132 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4367, allocations: 4 kB / 0.5132 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.4367, allocations: 4 kB / 0.5132 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.4368, allocations: 11.92 kB / 0.5132 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003757/0.4405, allocations: 2.153 MB / 0.5153 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001027/0.4406, allocations: 68 kB / 0.5153 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.4409, allocations: 63.88 kB / 0.5154 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005009/0.4414, allocations: 264.9 kB / 0.5157 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.206e-05/0.4415, allocations: 35.98 kB / 0.5157 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009699/0.4425, allocations: 0.856 MB / 0.5165 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.4425, allocations: 7.969 kB / 0.5165 GB, free: 3.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.4445, allocations: 1.135 MB / 0.5176 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008902/0.4454, allocations: 419.2 kB / 0.518 GB, free: 1.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/0.4456, allocations: 12 kB / 0.5181 GB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006312/0.4463, allocations: 35.95 kB / 0.5181 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.4464, allocations: 55.94 kB / 0.5181 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.471e-05/0.4465, allocations: 39.98 kB / 0.5182 GB, free: 1.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002572/0.4491, allocations: 1.82 MB / 0.52 GB, free: 15.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4491, allocations: 0 / 0.52 GB, free: 15.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001536/0.4506, allocations: 0.5697 MB / 0.5205 GB, free: 15.38 MB / 446.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.003489/0.4541, allocations: 2.366 MB / 0.5228 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001852/0.4559, allocations: 0.826 MB / 0.5236 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.456, allocations: 0 / 0.5236 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009115/0.4569, allocations: 472.1 kB / 0.5241 GB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.4594, allocations: 0.5992 MB / 0.5247 GB, free: 11.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.6821, allocations: 16.01 MB / 0.5403 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.6833, allocations: 1.604 MB / 0.5419 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001191/0.6845, allocations: 395 kB / 0.5422 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008966/0.6854, allocations: 1.122 MB / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.6854, allocations: 0 / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0969/0.7823, allocations: 63.15 MB / 0.605 GB, free: 42.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/20.63, allocations: 0.75 kB / 0.605 GB, free: 42.85 MB / 446.1 MB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.21335754699976]