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.0008794/0.0008794, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 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.004518/0.004518, allocations: 162.5 kB / 24.69 MB, free: 9.402 MB / 18.57 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 0.8982/0.8982, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 298.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.219e-05, allocations: 2.281 kB / 298.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1477/0.1477, allocations: 11.27 MB / 309.7 MB, free: 9.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.1628, allocations: 16.69 MB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.1658, allocations: 191.1 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003018/0.1688, allocations: 1.016 MB / 327.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007841/0.1766, allocations: 2.343 MB / 329.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004957/0.1816, allocations: 1.384 MB / 331.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00844/0.19, allocations: 6.423 MB / 337.7 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006509/0.1907, allocations: 245 kB / 338 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.1925, allocations: 1.375 MB / 339.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006179/0.1931, allocations: 0.728 MB / 340.1 MB, free: 4.957 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.1932, allocations: 72 kB / 340.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00266/0.1958, allocations: 1.081 MB / 341.2 MB, free: 3.805 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.196, allocations: 313.7 kB / 341.5 MB, free: 3.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007019/0.1967, allocations: 0.7009 MB / 342.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004858/0.2016, allocations: 3.655 MB / 345.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2016, allocations: 8 kB / 345.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2016, allocations: 0 / 345.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.924e-05/0.2017, allocations: 0 / 345.9 MB, free: 15.11 MB / 314.7 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.003743/0.2054, allocations: 3.531 MB / 349.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.2054, allocations: 15.98 kB / 349.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.492e-05/0.2055, allocations: 94.5 kB / 349.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.2058, allocations: 389.6 kB / 349.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.2083, allocations: 2.372 MB / 352.3 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.2083, allocations: 36.98 kB / 352.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.481e-05/0.2084, allocations: 55.89 kB / 352.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008633/0.2093, allocations: 0.7031 MB / 353.1 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.2093, allocations: 0 / 353.1 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.466e-05/0.2093, allocations: 20 kB / 353.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.2094, allocations: 19.98 kB / 353.1 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008872/0.2102, allocations: 0.7967 MB / 353.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.2135, allocations: 2.696 MB / 356.6 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.2142, allocations: 0.5597 MB / 357.2 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005844/0.2148, allocations: 0.5771 MB / 357.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01479/0.2296, allocations: 13.71 MB / 371.5 MB, free: 4.934 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004799/0.23, allocations: 369.8 kB / 371.8 MB, free: 4.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.23, allocations: 0 / 371.8 MB, free: 4.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.002077/0.2321, allocations: 1.327 MB / 373.2 MB, free: 3.219 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.2322, allocations: 59.41 kB / 373.2 MB, free: 3.148 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/0.2345, allocations: 2.84 MB / 376.1 MB, free: 296 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.2345, allocations: 35.02 kB / 376.1 MB, free: 256 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007802/0.2353, allocations: 1.404 MB / 377.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.2354, allocations: 170.6 kB / 377.7 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.2356, allocations: 226.3 kB / 377.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.826e-05/0.2357, allocations: 341.9 kB / 378.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.236, allocations: 233.9 kB / 378.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.2365, allocations: 0.5973 MB / 379 MB, free: 13.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009608/0.2375, allocations: 0.8851 MB / 379.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2375, allocations: 4 kB / 379.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001362/0.2388, allocations: 1.282 MB / 381.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.2388, allocations: 16.25 kB / 381.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/0.2389, allocations: 80 kB / 381.3 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003666/0.2393, allocations: 284.2 kB / 381.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.2396, allocations: 167.7 kB / 381.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006557/0.2402, allocations: 0.8919 MB / 382.6 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006762/0.2409, allocations: 111.3 kB / 382.7 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.004e-05/0.241, allocations: 64 kB / 382.8 MB, free: 9.137 MB / 346.7 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.0006004/0.2416, allocations: 421.6 kB / 383.2 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002478/0.2418, allocations: 397.4 kB / 383.6 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.2435, allocations: 1.261 MB / 384.9 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.2435, allocations: 8 kB / 384.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2435, allocations: 0 / 384.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2435, allocations: 3.984 kB / 384.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.2459, allocations: 2.112 MB / 387 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-05/0.2459, allocations: 68 kB / 387.1 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.2461, allocations: 63.88 kB / 387.1 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002838/0.2464, allocations: 268.8 kB / 387.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.2464, allocations: 31.98 kB / 387.4 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005615/0.247, allocations: 0.8608 MB / 388.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.247, allocations: 0 / 388.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.2481, allocations: 1.136 MB / 389.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/0.2486, allocations: 407.3 kB / 389.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.2488, allocations: 20 kB / 389.8 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.2491, allocations: 31.89 kB / 389.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.2492, allocations: 63.88 kB / 389.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.038e-05/0.2493, allocations: 39.98 kB / 390 MB, free: 1.809 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001679/0.251, allocations: 1.84 MB / 391.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.251, allocations: 0 / 391.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009793/0.2519, allocations: 0.5735 MB / 392.4 MB, free: 15.39 MB / 362.7 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.002347/0.2543, allocations: 2.424 MB / 394.8 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.2554, allocations: 0.8214 MB / 395.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2555, allocations: 1.062 kB / 395.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.256, allocations: 468.3 kB / 396.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.2573, allocations: 0.5095 MB / 396.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/0.2764, allocations: 16.1 MB / 412.7 MB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006718/0.2771, allocations: 1.049 MB / 413.7 MB, free: 9.352 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008176/0.2779, allocations: 399 kB / 414.1 MB, free: 8.957 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/0.2791, allocations: 1.129 MB / 415.3 MB, free: 7.824 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2791, allocations: 0 / 415.3 MB, free: 7.824 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/0.4921, allocations: 63.74 MB / 479 MB, free: 142.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.76, allocations: 9.281 kB / 479 MB, free: 142.7 MB / 426.7 MB " [Timeout remaining time 649] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/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: 12.563933450728655]