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.001276/0.001276, 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.001543/0.001543, allocations: 210.9 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.406/1.406, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.001906/0.001906, allocations: 65.47 kB / 347.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.25, allocations: 49.15 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009798/0.2598, allocations: 11.27 MB / 407.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.2822, allocations: 16.69 MB / 424.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002742/0.2849, allocations: 192.5 kB / 424.5 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003077/0.288, allocations: 1.012 MB / 425.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008335/0.2964, allocations: 2.275 MB / 427.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004557/0.3009, allocations: 1.342 MB / 429.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009847/0.3108, allocations: 6.263 MB / 435.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005244/0.3113, allocations: 245 kB / 435.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.3128, allocations: 1.011 MB / 436.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.314, allocations: 0.9856 MB / 437.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.3142, allocations: 68 kB / 437.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003447/0.3177, allocations: 1.081 MB / 438.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003486/0.318, allocations: 317.7 kB / 439.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.3192, allocations: 0.9585 MB / 440 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005946/0.3251, allocations: 3.71 MB / 443.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.3251, allocations: 4 kB / 443.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3251, allocations: 0 / 443.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.696e-05/0.3252, allocations: 3.984 kB / 443.7 MB, free: 3.543 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.005649/0.3309, allocations: 3.574 MB / 447.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3309, allocations: 15.98 kB / 447.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.331, allocations: 98.5 kB / 447.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.3315, allocations: 389.6 kB / 447.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004094/0.3356, allocations: 2.374 MB / 450.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.3356, allocations: 36.94 kB / 450.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3357, allocations: 51.94 kB / 450.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.3371, allocations: 0.7109 MB / 451 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.3372, allocations: 4 kB / 451 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.3372, allocations: 16 kB / 451 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.3373, allocations: 19.98 kB / 451 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.3389, allocations: 0.789 MB / 451.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005391/0.3443, allocations: 2.707 MB / 454.5 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3455, allocations: 0.5556 MB / 455.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.3466, allocations: 0.5811 MB / 455.7 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02699/0.3736, allocations: 13.71 MB / 469.4 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000818/0.3744, allocations: 373.3 kB / 469.7 MB, free: 8.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.3744, allocations: 0 / 469.7 MB, free: 8.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003268/0.3777, allocations: 1.322 MB / 471 MB, free: 7.586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.3777, allocations: 55.41 kB / 471.1 MB, free: 7.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003599/0.3813, allocations: 2.84 MB / 473.9 MB, free: 4.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.3814, allocations: 37.7 kB / 474 MB, free: 4.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.3827, allocations: 1.4 MB / 475.4 MB, free: 3.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.3829, allocations: 170.6 kB / 475.5 MB, free: 3.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.3832, allocations: 226.3 kB / 475.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3834, allocations: 353.8 kB / 476.1 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006044/0.384, allocations: 237.9 kB / 476.3 MB, free: 2.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008897/0.3849, allocations: 0.5888 MB / 476.9 MB, free: 1.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.3865, allocations: 0.8841 MB / 477.8 MB, free: 432 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3865, allocations: 4 kB / 477.8 MB, free: 428 kB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002489/0.389, allocations: 1.281 MB / 479.1 MB, free: 15.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.389, allocations: 12.97 kB / 479.1 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/0.3891, allocations: 80 kB / 479.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005874/0.3897, allocations: 280.7 kB / 479.5 MB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/0.3903, allocations: 167.6 kB / 479.6 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.3913, allocations: 0.8842 MB / 480.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000998/0.3923, allocations: 119.2 kB / 480.6 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3924, allocations: 67.94 kB / 480.7 MB, free: 13.5 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.0007502/0.3932, allocations: 417.5 kB / 481.1 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003944/0.3936, allocations: 393.6 kB / 481.5 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.3964, allocations: 1.259 MB / 482.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3964, allocations: 4 kB / 482.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3965, allocations: 0 / 482.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.3965, allocations: 7.922 kB / 482.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/0.4005, allocations: 2.115 MB / 484.9 MB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001098/0.4006, allocations: 76.12 kB / 484.9 MB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.4009, allocations: 59.88 kB / 485 MB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005039/0.4014, allocations: 268.7 kB / 485.3 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/0.4015, allocations: 31.98 kB / 485.3 MB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000995/0.4025, allocations: 0.8645 MB / 486.2 MB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4025, allocations: 4.031 kB / 486.2 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.4044, allocations: 1.143 MB / 487.3 MB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008989/0.4053, allocations: 419.2 kB / 487.7 MB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.4057, allocations: 8 kB / 487.7 MB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006879/0.4064, allocations: 39.95 kB / 487.8 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.4065, allocations: 55.94 kB / 487.8 MB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.258e-05/0.4066, allocations: 43.98 kB / 487.9 MB, free: 6.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002608/0.4092, allocations: 1.832 MB / 489.7 MB, free: 4.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4092, allocations: 0 / 489.7 MB, free: 4.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4107, allocations: 0.5735 MB / 490.3 MB, free: 3.746 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.003504/0.4142, allocations: 2.371 MB / 492.6 MB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.4161, allocations: 0.8218 MB / 493.5 MB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4161, allocations: 0 / 493.5 MB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000976/0.417, allocations: 476.3 kB / 493.9 MB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.4189, allocations: 0.5015 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.02461/0.4435, 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.001097/0.4446, allocations: 1.053 MB / 0.4996 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.4457, allocations: 395.1 kB / 0.5 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001293/0.447, allocations: 1.132 MB / 0.5011 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.714e-06/0.447, allocations: 0 / 0.5011 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.301/0.7479, allocations: 63.74 MB / 0.5633 GB, free: 148.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.47/17.22, allocations: 2.5 kB / 0.5633 GB, free: 148.8 MB / 478.1 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.4651644770056]