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.0008759/0.0008759, allocations: 91.67 kB / 20.68 MB, free: 3.871 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.0009456/0.0009456, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.9334/0.9334, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.844e-06/1.844e-06, allocations: 3.938 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.911e-05/2.095e-05, allocations: 12.47 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008821/0.008842, allocations: 11.84 MB / 336.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01794/0.02678, allocations: 17.54 MB / 353.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.02886, allocations: 185.9 kB / 354.1 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.03085, allocations: 1.032 MB / 355.2 MB, free: 1.23 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004974/0.03583, allocations: 2.382 MB / 357.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003013/0.03884, allocations: 1.433 MB / 359 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0059/0.04474, allocations: 6.64 MB / 365.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004014/0.04514, allocations: 240.9 kB / 365.9 MB, free: 6.465 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001356/0.0465, allocations: 1.504 MB / 367.4 MB, free: 4.957 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006702/0.04717, allocations: 0.7551 MB / 368.1 MB, free: 4.199 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.04727, allocations: 68 kB / 368.2 MB, free: 4.133 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.04934, allocations: 1.206 MB / 369.4 MB, free: 2.926 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.04951, allocations: 313.7 kB / 369.7 MB, free: 2.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000584/0.05009, allocations: 0.7009 MB / 370.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00285/0.05294, allocations: 3.624 MB / 374 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.05295, allocations: 0 / 374 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.05295, allocations: 0 / 374 MB, free: 14.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.734e-05/0.05299, allocations: 0 / 374 MB, free: 14.28 MB / 346.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.003198/0.05618, allocations: 3.515 MB / 377.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.05623, allocations: 19.91 kB / 377.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.125e-05/0.05632, allocations: 98.5 kB / 377.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.05656, allocations: 389.6 kB / 378 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.05889, allocations: 2.347 MB / 380.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.05892, allocations: 36.98 kB / 380.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.17e-05/0.059, allocations: 51.94 kB / 380.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/0.05977, allocations: 0.7069 MB / 381.2 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.05978, allocations: 4 kB / 381.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.05983, allocations: 20 kB / 381.2 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.05984, allocations: 19.98 kB / 381.2 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008529/0.06069, allocations: 0.7851 MB / 382 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.06347, allocations: 2.695 MB / 384.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007321/0.06421, allocations: 0.5519 MB / 385.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006116/0.06482, allocations: 0.5772 MB / 385.8 MB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/0.08001, allocations: 13.69 MB / 399.5 MB, free: 4.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004762/0.08049, allocations: 362 kB / 399.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.483e-06/0.08049, allocations: 0 / 399.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001874/0.08236, allocations: 1.323 MB / 401.2 MB, free: 2.457 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.08241, allocations: 63.34 kB / 401.2 MB, free: 2.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/0.08471, allocations: 2.819 MB / 404.1 MB, free: 15.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.08476, allocations: 41.69 kB / 404.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008087/0.08557, allocations: 1.392 MB / 405.5 MB, free: 14.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.836e-05/0.08567, allocations: 166.6 kB / 405.7 MB, free: 13.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.08587, allocations: 222.4 kB / 405.9 MB, free: 13.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.08596, allocations: 337.9 kB / 406.2 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.08628, allocations: 237.9 kB / 406.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.08677, allocations: 0.5927 MB / 407 MB, free: 12.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/0.0876, allocations: 0.8812 MB / 407.9 MB, free: 11.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.0876, allocations: 4 kB / 407.9 MB, free: 11.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001253/0.08885, allocations: 1.282 MB / 409.2 MB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.08887, allocations: 12 kB / 409.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/0.08893, allocations: 84.84 kB / 409.3 MB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003474/0.08928, allocations: 276.7 kB / 409.6 MB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.08957, allocations: 163.7 kB / 409.7 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000627/0.0902, allocations: 0.892 MB / 410.6 MB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/0.09069, allocations: 119.3 kB / 410.7 MB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/0.09076, allocations: 60 kB / 410.8 MB, free: 8.418 MB / 378.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.0004415/0.0912, allocations: 421.5 kB / 411.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.0914, allocations: 389.5 kB / 411.6 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/0.093, allocations: 1.248 MB / 412.8 MB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.09301, allocations: 7.938 kB / 412.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.09301, allocations: 0 / 412.8 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.09302, allocations: 7.984 kB / 412.9 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.09516, allocations: 2.1 MB / 414.9 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.102e-05/0.09521, allocations: 68 kB / 415 MB, free: 4.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.09536, allocations: 67.88 kB / 415.1 MB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002861/0.09565, allocations: 268.8 kB / 415.3 MB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.09568, allocations: 28 kB / 415.4 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005396/0.09622, allocations: 0.8646 MB / 416.2 MB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.09622, allocations: 8.016 kB / 416.2 MB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.09725, allocations: 1.132 MB / 417.4 MB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/0.09769, allocations: 411.3 kB / 417.8 MB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.09783, allocations: 11.94 kB / 417.8 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.09817, allocations: 31.97 kB / 417.8 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.09828, allocations: 59.92 kB / 417.9 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.09832, allocations: 40 kB / 417.9 MB, free: 1.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001567/0.09989, allocations: 1.82 MB / 419.7 MB, free: 15.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09989, allocations: 8 kB / 419.7 MB, free: 15.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008767/0.1008, allocations: 0.5657 MB / 420.3 MB, free: 14.71 MB / 394.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.002007/0.1028, allocations: 2.419 MB / 422.7 MB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.104, allocations: 0.8384 MB / 423.6 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.104, allocations: 0 / 423.6 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/0.1045, allocations: 464 kB / 424 MB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.1058, allocations: 0.5954 MB / 424.6 MB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.1211, allocations: 16 MB / 440.6 MB, free: 9.758 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006581/0.1218, allocations: 1.045 MB / 441.7 MB, free: 8.684 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007722/0.1225, allocations: 390.9 kB / 442 MB, free: 8.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000832/0.1234, allocations: 1.129 MB / 443.2 MB, free: 7.164 MB / 410.7 MB Notification: Performance of SimCode: time 1.582e-06/0.1234, allocations: 0 / 443.2 MB, free: 7.164 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/0.3404, allocations: 63.4 MB / 0.4947 GB, free: 67.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.8, allocations: 9.188 kB / 0.4947 GB, free: 67.87 MB / 410.7 MB " [Timeout remaining time 649] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/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: 12.7037900313735]