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.001411/0.001411, allocations: 112 kB / 20.43 MB, free: 1.449 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.001419/0.001419, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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.001563/0.001563, allocations: 55.91 kB / 370.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2605, allocations: 52.19 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01537/0.2758, allocations: 14.08 MB / 436.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02585/0.3017, allocations: 20.33 MB / 457 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.3042, allocations: 193.8 kB / 457.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003302/0.3075, allocations: 1.122 MB / 458.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008574/0.3161, allocations: 2.32 MB / 460.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005576/0.3217, allocations: 1.445 MB / 462.1 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.3329, allocations: 6.392 MB / 468.5 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006965/0.3336, allocations: 249 kB / 468.7 MB, free: 308 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.3355, allocations: 1.104 MB / 469.9 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.3371, allocations: 1.052 MB / 470.9 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002024/0.3373, allocations: 72 kB / 471 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004152/0.3415, allocations: 1.483 MB / 472.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003362/0.3418, allocations: 301.8 kB / 472.8 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.3433, allocations: 1.292 MB / 474 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.3491, allocations: 3.651 MB / 477.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3491, allocations: 0 / 477.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3491, allocations: 0 / 477.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.548e-05/0.3492, allocations: 0 / 477.7 MB, free: 7.312 MB / 382.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.005714/0.3549, allocations: 3.551 MB / 481.2 MB, free: 3.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3549, allocations: 8.031 kB / 481.3 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.3551, allocations: 98.5 kB / 481.4 MB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004682/0.3555, allocations: 397.5 kB / 481.7 MB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004028/0.3596, allocations: 2.362 MB / 484.1 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.3596, allocations: 33 kB / 484.1 MB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.3597, allocations: 55.89 kB / 484.2 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.3611, allocations: 0.7031 MB / 484.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3611, allocations: 0 / 484.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/0.3612, allocations: 24 kB / 484.9 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.3612, allocations: 19.94 kB / 484.9 MB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.3628, allocations: 0.7889 MB / 485.7 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005392/0.3682, allocations: 2.839 MB / 488.6 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.3694, allocations: 0.5597 MB / 489.1 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.3704, allocations: 0.5772 MB / 489.7 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02681/0.3972, allocations: 13.72 MB / 0.4916 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008341/0.3981, allocations: 361.6 kB / 0.492 GB, free: 12.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.3981, allocations: 0 / 0.492 GB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003523/0.4016, allocations: 1.33 MB / 0.4933 GB, free: 11.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.4017, allocations: 67.33 kB / 0.4933 GB, free: 11.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003945/0.4056, allocations: 2.803 MB / 0.4961 GB, free: 8.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.4057, allocations: 29.7 kB / 0.4961 GB, free: 8.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.407, allocations: 1.4 MB / 0.4975 GB, free: 6.914 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.4073, allocations: 170.6 kB / 0.4976 GB, free: 6.746 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003346/0.4076, allocations: 226.3 kB / 0.4978 GB, free: 6.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4078, allocations: 334 kB / 0.4982 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/0.4084, allocations: 245.8 kB / 0.4984 GB, free: 5.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00091/0.4093, allocations: 0.585 MB / 0.499 GB, free: 5.191 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.4108, allocations: 0.8802 MB / 0.4998 GB, free: 4.141 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4109, allocations: 0 / 0.4998 GB, free: 4.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002545/0.4134, allocations: 1.289 MB / 0.5011 GB, free: 2.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.4134, allocations: 8 kB / 0.5011 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.4136, allocations: 88.11 kB / 0.5012 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006159/0.4142, allocations: 276.6 kB / 0.5014 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.4148, allocations: 167.7 kB / 0.5016 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.4159, allocations: 0.881 MB / 0.5025 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.417, allocations: 115.2 kB / 0.5026 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.4171, allocations: 64 kB / 0.5026 GB, free: 1.227 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.0008239/0.4179, allocations: 427 kB / 0.503 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004646/0.4184, allocations: 381.6 kB / 0.5034 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.4213, allocations: 1.266 MB / 0.5046 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.4213, allocations: 8 kB / 0.5046 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4213, allocations: 0 / 0.5046 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.4213, allocations: 3.938 kB / 0.5046 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004094/0.4254, allocations: 2.149 MB / 0.5067 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001149/0.4255, allocations: 71.98 kB / 0.5068 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.4258, allocations: 63.88 kB / 0.5069 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000496/0.4263, allocations: 260.9 kB / 0.5071 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-05/0.4264, allocations: 28 kB / 0.5072 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.4274, allocations: 0.8671 MB / 0.508 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.4274, allocations: 4.031 kB / 0.508 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.4296, allocations: 1.143 MB / 0.5091 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.4307, allocations: 415.1 kB / 0.5095 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003087/0.431, allocations: 12 kB / 0.5095 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.4316, allocations: 31.97 kB / 0.5096 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.4318, allocations: 59.92 kB / 0.5096 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.809e-05/0.4318, allocations: 36 kB / 0.5096 GB, free: 9.875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002723/0.4346, allocations: 1.824 MB / 0.5114 GB, free: 8.047 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4346, allocations: 4 kB / 0.5114 GB, free: 8.043 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001495/0.4361, allocations: 0.5696 MB / 0.512 GB, free: 7.473 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.003713/0.4398, allocations: 2.371 MB / 0.5143 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.4417, allocations: 0.8144 MB / 0.5151 GB, free: 4.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.4418, allocations: 4.125 kB / 0.5151 GB, free: 4.215 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.4427, allocations: 464.2 kB / 0.5155 GB, free: 3.738 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.4453, allocations: 0.6017 MB / 0.5161 GB, free: 3.133 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/0.4706, allocations: 16.04 MB / 0.5318 GB, free: 2.527 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.4718, allocations: 1.596 MB / 0.5334 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001107/0.4729, allocations: 394.9 kB / 0.5337 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2085/0.6814, allocations: 1.121 MB / 0.5348 GB, free: 111 MB / 446.1 MB Notification: Performance of SimCode: time 2.986e-06/0.6814, allocations: 0 / 0.5348 GB, free: 111 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.7869, allocations: 63.11 MB / 0.5965 GB, free: 56.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.06/20.85, allocations: 0 / 0.5965 GB, free: 56.94 MB / 446.1 MB " [Timeout remaining time 639] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.49818837500061]