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.001845/0.001845, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002388/0.002388, allocations: 194 kB / 23.71 MB, free: 4.406 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.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.00159/0.00159, allocations: 47.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2269, allocations: 52.19 MB / 422.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01306/0.24, allocations: 11.83 MB / 434.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.2628, allocations: 17.48 MB / 451.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001859/0.2647, allocations: 189.9 kB / 452.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002766/0.2674, allocations: 1.034 MB / 453.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006856/0.2743, allocations: 2.316 MB / 455.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00493/0.2792, allocations: 1.398 MB / 456.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009965/0.2892, allocations: 6.384 MB / 463.2 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006662/0.2899, allocations: 241 kB / 463.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.2918, allocations: 1.116 MB / 464.5 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.2933, allocations: 1.013 MB / 465.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002435/0.2935, allocations: 68 kB / 465.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003455/0.297, allocations: 1.194 MB / 466.8 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.2973, allocations: 309.8 kB / 467.1 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.2985, allocations: 0.9585 MB / 468.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005096/0.3036, allocations: 3.687 MB / 471.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3036, allocations: 4 kB / 471.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3036, allocations: 0 / 471.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.266e-05/0.3037, allocations: 3.938 kB / 471.8 MB, free: 13.1 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.005347/0.309, allocations: 3.547 MB / 475.3 MB, free: 9.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3091, allocations: 8.031 kB / 475.3 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.3092, allocations: 94.52 kB / 475.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000431/0.3096, allocations: 397.5 kB / 475.8 MB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003962/0.3136, allocations: 2.359 MB / 478.2 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/0.3136, allocations: 29 kB / 478.2 MB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.3138, allocations: 51.95 kB / 478.2 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3151, allocations: 0.7069 MB / 479 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3152, allocations: 0 / 479 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.838e-05/0.3152, allocations: 23.98 kB / 479 MB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.3153, allocations: 23.97 kB / 479 MB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.3168, allocations: 0.7889 MB / 479.8 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004975/0.3218, allocations: 2.687 MB / 482.5 MB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.3231, allocations: 0.5713 MB / 483 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3241, allocations: 0.5811 MB / 483.6 MB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02565/0.3498, allocations: 13.65 MB / 497.3 MB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008271/0.3506, allocations: 373.5 kB / 497.6 MB, free: 2.598 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.3506, allocations: 0 / 497.6 MB, free: 2.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003197/0.3538, allocations: 1.326 MB / 499 MB, free: 1.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.3539, allocations: 59.41 kB / 499 MB, free: 1.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003631/0.3575, allocations: 2.811 MB / 0.4901 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.3576, allocations: 41.7 kB / 0.4901 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.3589, allocations: 1.396 MB / 0.4915 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.3591, allocations: 170.6 kB / 0.4916 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.3594, allocations: 226.4 kB / 0.4919 GB, free: 12.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3595, allocations: 337.9 kB / 0.4922 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.3601, allocations: 233.9 kB / 0.4924 GB, free: 11.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008756/0.361, allocations: 0.6005 MB / 0.493 GB, free: 11.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.3625, allocations: 0.8763 MB / 0.4938 GB, free: 10.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.3625, allocations: 4 kB / 0.4938 GB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002336/0.3649, allocations: 1.289 MB / 0.4951 GB, free: 8.828 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.3649, allocations: 14.81 kB / 0.4951 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000119/0.365, allocations: 80 kB / 0.4952 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005624/0.3656, allocations: 280.8 kB / 0.4955 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005812/0.3661, allocations: 163.7 kB / 0.4956 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.3672, allocations: 0.8819 MB / 0.4965 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009496/0.3681, allocations: 119.2 kB / 0.4966 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.3682, allocations: 64.06 kB / 0.4967 GB, free: 7.215 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.0006965/0.3689, allocations: 421.5 kB / 0.4971 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.3693, allocations: 381.6 kB / 0.4974 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002808/0.3721, allocations: 1.255 MB / 0.4986 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3721, allocations: 4 kB / 0.4987 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3721, allocations: 0 / 0.4987 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.3721, allocations: 7.922 kB / 0.4987 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003817/0.376, allocations: 2.106 MB / 0.5007 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001098/0.3761, allocations: 75.94 kB / 0.5008 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.3764, allocations: 59.94 kB / 0.5008 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004903/0.3769, allocations: 260.8 kB / 0.5011 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.704e-05/0.3769, allocations: 28 kB / 0.5011 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009745/0.3779, allocations: 0.8752 MB / 0.502 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/0.3779, allocations: 3.984 kB / 0.502 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.3799, allocations: 1.135 MB / 0.5031 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008741/0.3808, allocations: 407.2 kB / 0.5035 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.3811, allocations: 12 kB / 0.5035 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006784/0.3817, allocations: 31.97 kB / 0.5035 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.3819, allocations: 75.84 kB / 0.5036 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.686e-05/0.382, allocations: 40 kB / 0.5036 GB, free: 15.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.3846, allocations: 1.824 MB / 0.5054 GB, free: 14.08 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3846, allocations: 0 / 0.5054 GB, free: 14.08 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001289/0.3859, allocations: 0.5619 MB / 0.506 GB, free: 13.52 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.003347/0.3892, allocations: 2.367 MB / 0.5083 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.3911, allocations: 0.8179 MB / 0.5091 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3911, allocations: 0 / 0.5091 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009582/0.3921, allocations: 477 kB / 0.5095 GB, free: 9.777 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.3946, allocations: 0.5873 MB / 0.5101 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02342/0.418, allocations: 16.02 MB / 0.5257 GB, free: 8.598 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.4191, allocations: 1.045 MB / 0.5268 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.4202, allocations: 394.9 kB / 0.5271 GB, free: 7.129 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/0.4215, allocations: 1.124 MB / 0.5282 GB, free: 6.004 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4215, allocations: 0 / 0.5282 GB, free: 6.004 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2589/0.6804, allocations: 63.33 MB / 0.5901 GB, free: 63.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/17.24, allocations: 10.22 kB / 0.5901 GB, free: 63.58 MB / 446.1 MB " [Timeout remaining time 643] (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: 19.958966152742505]