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.001956/0.001956, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002485/0.002485, allocations: 212.5 kB / 23.73 MB, free: 4.41 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.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001679/0.001679, allocations: 51.92 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2293, allocations: 53.37 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01387/0.2431, allocations: 11.83 MB / 442.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02603/0.2692, allocations: 17.53 MB / 460.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002506/0.2717, allocations: 189.8 kB / 460.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003965/0.2757, allocations: 1.03 MB / 461.6 MB, free: 7.977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007451/0.2831, allocations: 2.308 MB / 464 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00423/0.2873, allocations: 1.406 MB / 465.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009933/0.2973, allocations: 6.474 MB / 471.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006073/0.2979, allocations: 244.9 kB / 472.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.2995, allocations: 1.112 MB / 473.2 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.3009, allocations: 1.005 MB / 474.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002183/0.3011, allocations: 72 kB / 474.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003309/0.3044, allocations: 1.202 MB / 475.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003146/0.3047, allocations: 309.7 kB / 475.8 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.3058, allocations: 0.9585 MB / 476.7 MB, free: 8.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004988/0.3108, allocations: 3.69 MB / 480.4 MB, free: 5.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3108, allocations: 0 / 480.4 MB, free: 5.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3108, allocations: 0 / 480.4 MB, free: 5.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.433e-05/0.3109, allocations: 0 / 480.4 MB, free: 5.094 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.005823/0.3167, allocations: 3.551 MB / 484 MB, free: 1.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3168, allocations: 12.03 kB / 484 MB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001324/0.3169, allocations: 94.52 kB / 484.1 MB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005082/0.3174, allocations: 389.6 kB / 484.5 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004193/0.3216, allocations: 2.362 MB / 486.8 MB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.3216, allocations: 37 kB / 486.8 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3218, allocations: 44 kB / 486.9 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3231, allocations: 0.6992 MB / 487.6 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.3232, allocations: 4 kB / 487.6 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.789e-05/0.3232, allocations: 20 kB / 487.6 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.3233, allocations: 19.98 kB / 487.6 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3249, allocations: 0.789 MB / 488.4 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.3301, allocations: 2.684 MB / 491.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.3315, allocations: 0.5675 MB / 491.7 MB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.3325, allocations: 0.5818 MB / 492.3 MB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03104/0.3636, allocations: 13.7 MB / 0.4941 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008309/0.3644, allocations: 361.5 kB / 0.4944 GB, free: 10.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.3644, allocations: 0 / 0.4944 GB, free: 10.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003543/0.3679, allocations: 1.322 MB / 0.4957 GB, free: 9.234 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.368, allocations: 67.39 kB / 0.4958 GB, free: 9.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003953/0.372, allocations: 2.815 MB / 0.4985 GB, free: 6.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.372, allocations: 37.64 kB / 0.4986 GB, free: 6.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/0.3734, allocations: 1.396 MB / 0.4999 GB, free: 4.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.3736, allocations: 170.6 kB / 0.5001 GB, free: 4.707 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/0.3739, allocations: 226.4 kB / 0.5003 GB, free: 4.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3741, allocations: 341.9 kB / 0.5006 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/0.3747, allocations: 233.9 kB / 0.5009 GB, free: 3.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008989/0.3756, allocations: 0.5927 MB / 0.5014 GB, free: 3.148 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3772, allocations: 0.8841 MB / 0.5023 GB, free: 2.094 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.3772, allocations: 4 kB / 0.5023 GB, free: 2.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002352/0.3795, allocations: 1.277 MB / 0.5036 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.3796, allocations: 12 kB / 0.5036 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/0.3797, allocations: 83.94 kB / 0.5037 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005718/0.3803, allocations: 281.3 kB / 0.5039 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.3809, allocations: 171.6 kB / 0.5041 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.3819, allocations: 0.8881 MB / 0.505 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009657/0.3829, allocations: 107.3 kB / 0.5051 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.383, allocations: 64 kB / 0.5051 GB, free: 15.18 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.0007335/0.3837, allocations: 421.4 kB / 0.5055 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/0.3842, allocations: 381.6 kB / 0.5059 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.387, allocations: 1.255 MB / 0.5071 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.387, allocations: 4 kB / 0.5071 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.387, allocations: 0 / 0.5071 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.387, allocations: 11.86 kB / 0.5071 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00383/0.3908, allocations: 2.103 MB / 0.5092 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001103/0.3909, allocations: 75.98 kB / 0.5093 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.3912, allocations: 51.95 kB / 0.5093 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000498/0.3917, allocations: 274.5 kB / 0.5096 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.837e-05/0.3918, allocations: 32 kB / 0.5096 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009956/0.3928, allocations: 0.8531 MB / 0.5104 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3928, allocations: 0 / 0.5104 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.3948, allocations: 1.147 MB / 0.5115 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008642/0.3957, allocations: 411.2 kB / 0.5119 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.3959, allocations: 11.98 kB / 0.5119 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007021/0.3966, allocations: 35.91 kB / 0.512 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.3968, allocations: 63.92 kB / 0.512 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.279e-05/0.3969, allocations: 36 kB / 0.5121 GB, free: 7.883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002457/0.3993, allocations: 1.82 MB / 0.5139 GB, free: 6.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3993, allocations: 0 / 0.5139 GB, free: 6.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001333/0.4007, allocations: 0.5696 MB / 0.5144 GB, free: 5.488 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.003312/0.404, allocations: 2.378 MB / 0.5167 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.4058, allocations: 0.8224 MB / 0.5175 GB, free: 2.223 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4058, allocations: 128 / 0.5175 GB, free: 2.223 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009516/0.4068, allocations: 475.9 kB / 0.518 GB, free: 1.734 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.4092, allocations: 0.5953 MB / 0.5186 GB, free: 1.133 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/0.4331, allocations: 16.01 MB / 0.5342 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1828/0.6159, allocations: 1.042 MB / 0.5352 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001329/0.6172, allocations: 388.7 kB / 0.5356 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.6183, allocations: 1.124 MB / 0.5367 GB, free: 106.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6183, allocations: 0 / 0.5367 GB, free: 106.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09176/0.7101, allocations: 63.38 MB / 0.5986 GB, free: 49.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.31, allocations: 7.25 kB / 0.5986 GB, free: 49.86 MB / 446.1 MB " [Timeout remaining time 643] (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: 20.086202818900347]