Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001475/0.001475, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001514/0.001514, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 47.92 kB / 377.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2585, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0155/0.274, allocations: 14.09 MB / 445.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02669/0.3007, allocations: 20.37 MB / 465.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002415/0.3031, allocations: 193.9 kB / 465.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00331/0.3064, allocations: 1.134 MB / 466.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008171/0.3146, allocations: 2.32 MB / 469.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005532/0.3201, allocations: 1.445 MB / 470.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.3318, allocations: 6.47 MB / 477.1 MB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007433/0.3326, allocations: 256.9 kB / 477.4 MB, free: 8.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.3346, allocations: 1.104 MB / 478.5 MB, free: 7.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.3362, allocations: 1.06 MB / 479.5 MB, free: 6.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.3364, allocations: 68 kB / 479.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.3405, allocations: 1.479 MB / 481.1 MB, free: 4.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003797/0.3409, allocations: 309.7 kB / 481.4 MB, free: 4.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001528/0.3425, allocations: 1.304 MB / 482.7 MB, free: 3.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006483/0.3489, allocations: 3.655 MB / 486.4 MB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3489, allocations: 0 / 486.4 MB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3489, allocations: 0 / 486.4 MB, free: 15.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.717e-05/0.349, allocations: 0 / 486.4 MB, free: 15.37 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.006245/0.3553, allocations: 3.547 MB / 489.9 MB, free: 11.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.3553, allocations: 8.031 kB / 489.9 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.3555, allocations: 94.52 kB / 490 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000561/0.356, allocations: 397.5 kB / 490.4 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004198/0.3602, allocations: 2.359 MB / 492.8 MB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.3603, allocations: 29 kB / 492.8 MB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.3604, allocations: 48 kB / 492.8 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.3618, allocations: 0.7031 MB / 493.5 MB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3618, allocations: 3.984 kB / 493.5 MB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/0.3619, allocations: 16 kB / 493.5 MB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.581e-05/0.3619, allocations: 23.98 kB / 493.6 MB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.3635, allocations: 0.789 MB / 494.4 MB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005575/0.3691, allocations: 2.832 MB / 497.2 MB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3703, allocations: 0.5635 MB / 497.8 MB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009982/0.3713, allocations: 0.5817 MB / 498.3 MB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02716/0.3985, allocations: 13.76 MB / 0.5001 GB, free: 5.008 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008198/0.3993, allocations: 369.5 kB / 0.5004 GB, free: 4.637 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.3993, allocations: 0 / 0.5004 GB, free: 4.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003332/0.4026, allocations: 1.318 MB / 0.5017 GB, free: 3.305 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.4027, allocations: 67.41 kB / 0.5018 GB, free: 3.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00375/0.4065, allocations: 2.796 MB / 0.5045 GB, free: 420 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.4065, allocations: 33.7 kB / 0.5046 GB, free: 380 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.4079, allocations: 1.4 MB / 0.5059 GB, free: 14.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.4081, allocations: 170.6 kB / 0.5061 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.4084, allocations: 222.4 kB / 0.5063 GB, free: 14.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.4086, allocations: 341.9 kB / 0.5066 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.4092, allocations: 237.9 kB / 0.5069 GB, free: 14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008963/0.4101, allocations: 0.5927 MB / 0.5074 GB, free: 13.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.4116, allocations: 0.8763 MB / 0.5083 GB, free: 12.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.4117, allocations: 7.938 kB / 0.5083 GB, free: 12.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002497/0.4141, allocations: 1.285 MB / 0.5096 GB, free: 10.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.4142, allocations: 13 kB / 0.5096 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.4143, allocations: 79.94 kB / 0.5096 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006085/0.4149, allocations: 290.5 kB / 0.5099 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000585/0.4155, allocations: 163.7 kB / 0.5101 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.4166, allocations: 0.8935 MB / 0.5109 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.4177, allocations: 107.3 kB / 0.511 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.4178, allocations: 64 kB / 0.5111 GB, free: 9.273 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.0008794/0.4187, allocations: 433.4 kB / 0.5115 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005174/0.4192, allocations: 377.6 kB / 0.5119 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.4221, allocations: 1.251 MB / 0.5131 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.4221, allocations: 4 kB / 0.5131 GB, free: 7.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4221, allocations: 0 / 0.5131 GB, free: 7.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.4221, allocations: 7.922 kB / 0.5131 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003951/0.4261, allocations: 2.161 MB / 0.5152 GB, free: 4.957 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.4262, allocations: 68 kB / 0.5153 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.4265, allocations: 55.94 kB / 0.5153 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005032/0.427, allocations: 266.4 kB / 0.5156 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.174e-05/0.427, allocations: 31.98 kB / 0.5156 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.428, allocations: 0.8686 MB / 0.5165 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.428, allocations: 0 / 0.5165 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.4301, allocations: 1.139 MB / 0.5176 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00092/0.431, allocations: 419.2 kB / 0.518 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.4313, allocations: 8 kB / 0.518 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006547/0.432, allocations: 31.95 kB / 0.518 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.4321, allocations: 67.88 kB / 0.5181 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.992e-05/0.4322, allocations: 43.98 kB / 0.5181 GB, free: 1.906 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002751/0.4349, allocations: 1.82 MB / 0.5199 GB, free: 84 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4349, allocations: 0 / 0.5199 GB, free: 84 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001553/0.4365, allocations: 0.5658 MB / 0.5205 GB, free: 15.52 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.003579/0.4401, allocations: 2.365 MB / 0.5228 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.442, allocations: 0.8302 MB / 0.5236 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.442, allocations: 0 / 0.5236 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009485/0.4429, allocations: 468 kB / 0.524 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.4455, allocations: 0.6031 MB / 0.5246 GB, free: 11.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/0.6747, allocations: 16.02 MB / 0.5403 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.6759, allocations: 1.599 MB / 0.5418 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.677, allocations: 394.2 kB / 0.5422 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008625/0.6779, allocations: 1.126 MB / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.362e-06/0.6779, allocations: 0 / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.7782, allocations: 63.16 MB / 0.605 GB, free: 43.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.89/21.67, allocations: 14.64 kB / 0.605 GB, free: 43.01 MB / 446.1 MB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.343458980998548]