Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001359/0.001359, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001469/0.001469, allocations: 213 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 59.86 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2481, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009767/0.2579, allocations: 11.27 MB / 407.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02729/0.2852, allocations: 16.69 MB / 424.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003053/0.2882, allocations: 192.4 kB / 424.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003493/0.2917, allocations: 1.005 MB / 425.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008658/0.3004, allocations: 2.264 MB / 427.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006333/0.3067, allocations: 1.349 MB / 429.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01098/0.3177, allocations: 6.259 MB / 435.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000612/0.3183, allocations: 249 kB / 435.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.32, allocations: 1.007 MB / 436.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.3213, allocations: 0.9895 MB / 437.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002324/0.3215, allocations: 68 kB / 437.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00337/0.3249, allocations: 1.081 MB / 438.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003977/0.3253, allocations: 309.7 kB / 439.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001393/0.3267, allocations: 0.9702 MB / 440 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006155/0.3328, allocations: 3.706 MB / 443.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3328, allocations: 0 / 443.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3328, allocations: 0 / 443.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.588e-05/0.3329, allocations: 4 kB / 443.7 MB, free: 3.555 MB / 350.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.005629/0.3385, allocations: 3.574 MB / 447.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3386, allocations: 11.98 kB / 447.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.3387, allocations: 98.5 kB / 447.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/0.3392, allocations: 393.6 kB / 447.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004657/0.3438, allocations: 2.378 MB / 450.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.94e-05/0.3439, allocations: 40.98 kB / 450.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.3441, allocations: 51.89 kB / 450.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.3455, allocations: 0.7031 MB / 451 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3455, allocations: 0 / 451 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.166e-05/0.3455, allocations: 20 kB / 451 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.3456, allocations: 19.98 kB / 451 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.3471, allocations: 0.789 MB / 451.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005542/0.3526, allocations: 2.703 MB / 454.5 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.3539, allocations: 0.5751 MB / 455.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009786/0.3549, allocations: 0.5733 MB / 455.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02639/0.3813, allocations: 13.71 MB / 469.4 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008239/0.3821, allocations: 369.4 kB / 469.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.015e-06/0.3821, allocations: 3.938 kB / 469.7 MB, free: 8.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.00331/0.3854, allocations: 1.318 MB / 471 MB, free: 7.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.3855, allocations: 55.41 kB / 471.1 MB, free: 7.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003802/0.3893, allocations: 2.844 MB / 473.9 MB, free: 4.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.3894, allocations: 37.69 kB / 474 MB, free: 4.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.3907, allocations: 1.404 MB / 475.4 MB, free: 3.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3909, allocations: 174.6 kB / 475.5 MB, free: 3.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003723/0.3913, allocations: 230.3 kB / 475.8 MB, free: 2.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3915, allocations: 342 kB / 476.1 MB, free: 2.469 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/0.3921, allocations: 241.9 kB / 476.3 MB, free: 2.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008744/0.393, allocations: 0.5888 MB / 476.9 MB, free: 1.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.3945, allocations: 0.8763 MB / 477.8 MB, free: 440 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3945, allocations: 0 / 477.8 MB, free: 440 kB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002677/0.3972, allocations: 1.285 MB / 479.1 MB, free: 15.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.3972, allocations: 12 kB / 479.1 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.3973, allocations: 83.98 kB / 479.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006018/0.3979, allocations: 281.3 kB / 479.5 MB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.3985, allocations: 163.7 kB / 479.6 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.3996, allocations: 0.8842 MB / 480.5 MB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/0.4009, allocations: 123.2 kB / 480.6 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.401, allocations: 64 kB / 480.7 MB, free: 13.51 MB / 398.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.0008048/0.4018, allocations: 421.5 kB / 481.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.4023, allocations: 389.6 kB / 481.5 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.4051, allocations: 1.263 MB / 482.7 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.4051, allocations: 4 kB / 482.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4051, allocations: 4 kB / 482.8 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.4051, allocations: 3.938 kB / 482.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.4091, allocations: 2.119 MB / 484.9 MB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001118/0.4092, allocations: 75.98 kB / 484.9 MB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.4096, allocations: 60.02 kB / 485 MB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004774/0.41, allocations: 264.7 kB / 485.3 MB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.827e-05/0.4101, allocations: 32 kB / 485.3 MB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009667/0.4111, allocations: 0.8645 MB / 486.2 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.4111, allocations: 7.969 kB / 486.2 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.4131, allocations: 1.139 MB / 487.3 MB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009201/0.414, allocations: 415.2 kB / 487.7 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.4143, allocations: 15.98 kB / 487.7 MB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006753/0.415, allocations: 27.97 kB / 487.8 MB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.4151, allocations: 59.92 kB / 487.8 MB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.02e-05/0.4152, allocations: 40 kB / 487.9 MB, free: 6.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002674/0.4179, allocations: 1.836 MB / 489.7 MB, free: 4.328 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4179, allocations: 0 / 489.7 MB, free: 4.328 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001441/0.4193, allocations: 0.5774 MB / 490.3 MB, free: 3.75 MB / 398.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.003445/0.4228, allocations: 2.371 MB / 492.6 MB, free: 1.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.4246, allocations: 0.8218 MB / 493.5 MB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4246, allocations: 0 / 493.5 MB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009397/0.4255, allocations: 476.2 kB / 493.9 MB, free: 0 / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.4273, allocations: 0.5028 MB / 494.4 MB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02455/0.4519, allocations: 16.11 MB / 0.4986 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.453, allocations: 1.057 MB / 0.4996 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001212/0.4542, allocations: 395.1 kB / 0.5 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/0.4555, allocations: 1.128 MB / 0.5011 GB, free: 12.21 MB / 430.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4555, allocations: 0 / 0.5011 GB, free: 12.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2882/0.7437, allocations: 63.73 MB / 0.5633 GB, free: 149.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17/17.75, allocations: 9.531 kB / 0.5633 GB, free: 149.7 MB / 478.1 MB " [Timeout remaining time 642] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.355189299210906]