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.001279/0.001279, allocations: 107.1 kB / 20.44 MB, free: 1.176 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.001424/0.001424, allocations: 207.5 kB / 23.73 MB, free: 4.375 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001504/0.001504, allocations: 43.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2459, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01382/0.2597, allocations: 11.84 MB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02414/0.2839, allocations: 17.53 MB / 460.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002524/0.2864, allocations: 189.8 kB / 460.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003025/0.2894, allocations: 1.026 MB / 461.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007135/0.2966, allocations: 2.308 MB / 464 MB, free: 5.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004367/0.3009, allocations: 1.402 MB / 465.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.3115, allocations: 6.478 MB / 471.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005778/0.3121, allocations: 249 kB / 472.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.3137, allocations: 1.116 MB / 473.2 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001414/0.3151, allocations: 1.056 MB / 474.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001686/0.3153, allocations: 68 kB / 474.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.3185, allocations: 1.237 MB / 475.6 MB, free: 9.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003619/0.3189, allocations: 305.8 kB / 475.9 MB, free: 9.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.32, allocations: 0.9585 MB / 476.8 MB, free: 8.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004808/0.3249, allocations: 3.687 MB / 480.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3249, allocations: 0 / 480.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3249, allocations: 0 / 480.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.101e-05/0.3249, allocations: 0 / 480.5 MB, free: 4.973 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.00568/0.3306, allocations: 3.555 MB / 484.1 MB, free: 1.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3307, allocations: 12.03 kB / 484.1 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.3308, allocations: 98.5 kB / 484.2 MB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004589/0.3313, allocations: 389.6 kB / 484.5 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.3352, allocations: 2.358 MB / 486.9 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.3352, allocations: 33 kB / 486.9 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.3354, allocations: 48 kB / 487 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3367, allocations: 0.6992 MB / 487.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3367, allocations: 4 kB / 487.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.847e-05/0.3368, allocations: 20 kB / 487.7 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.3368, allocations: 19.98 kB / 487.7 MB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.3384, allocations: 0.785 MB / 488.5 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005046/0.3434, allocations: 2.691 MB / 491.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.3447, allocations: 0.5519 MB / 491.8 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.3457, allocations: 0.5857 MB / 492.3 MB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02636/0.3721, allocations: 13.7 MB / 0.4942 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007776/0.3728, allocations: 365.6 kB / 0.4945 GB, free: 10.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.3728, allocations: 3.938 kB / 0.4945 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003138/0.376, allocations: 1.31 MB / 0.4958 GB, free: 9.113 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.376, allocations: 59.39 kB / 0.4959 GB, free: 9.043 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/0.3794, allocations: 2.823 MB / 0.4986 GB, free: 6.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.34e-05/0.3795, allocations: 33.7 kB / 0.4987 GB, free: 6.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.3808, allocations: 1.392 MB / 0.5 GB, free: 4.762 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.3809, allocations: 174.6 kB / 0.5002 GB, free: 4.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.3813, allocations: 230.4 kB / 0.5004 GB, free: 4.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3814, allocations: 337.9 kB / 0.5007 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005697/0.382, allocations: 245.8 kB / 0.501 GB, free: 3.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008424/0.3828, allocations: 0.5888 MB / 0.5015 GB, free: 3.027 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.3843, allocations: 0.8802 MB / 0.5024 GB, free: 1.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.3843, allocations: 8 kB / 0.5024 GB, free: 1.969 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002392/0.3867, allocations: 1.277 MB / 0.5037 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3867, allocations: 8.938 kB / 0.5037 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.3868, allocations: 83.98 kB / 0.5037 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005911/0.3874, allocations: 280.7 kB / 0.504 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/0.388, allocations: 167.7 kB / 0.5042 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.389, allocations: 0.8897 MB / 0.505 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.39, allocations: 107.3 kB / 0.5051 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.3901, allocations: 67.98 kB / 0.5052 GB, free: 15.07 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.0007621/0.3909, allocations: 425.4 kB / 0.5056 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004859/0.3914, allocations: 385.7 kB / 0.506 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.3943, allocations: 1.255 MB / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.3943, allocations: 4 kB / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3943, allocations: 0 / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3943, allocations: 7.938 kB / 0.5072 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003968/0.3983, allocations: 2.103 MB / 0.5093 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000107/0.3984, allocations: 68 kB / 0.5093 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.3987, allocations: 64 kB / 0.5094 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005037/0.3992, allocations: 260.8 kB / 0.5096 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-05/0.3992, allocations: 35.98 kB / 0.5097 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009793/0.4002, allocations: 0.8586 MB / 0.5105 GB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4002, allocations: 4.031 kB / 0.5105 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.4022, allocations: 1.139 MB / 0.5116 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009578/0.4032, allocations: 419.2 kB / 0.512 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002792/0.4034, allocations: 8 kB / 0.512 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/0.4041, allocations: 35.95 kB / 0.5121 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.4043, allocations: 55.94 kB / 0.5121 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.948e-05/0.4044, allocations: 39.98 kB / 0.5122 GB, free: 7.766 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.4069, allocations: 1.82 MB / 0.5139 GB, free: 5.941 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4069, allocations: 4 kB / 0.5139 GB, free: 5.938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001343/0.4083, allocations: 0.5696 MB / 0.5145 GB, free: 5.367 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.003415/0.4117, allocations: 2.374 MB / 0.5168 GB, free: 2.949 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.4135, allocations: 0.8225 MB / 0.5176 GB, free: 2.105 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4135, allocations: 4 kB / 0.5176 GB, free: 2.102 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009238/0.4144, allocations: 475.9 kB / 0.5181 GB, free: 1.613 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.4167, allocations: 0.5994 MB / 0.5187 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/0.4398, allocations: 16 MB / 0.5343 GB, free: 456 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1798/0.6195, allocations: 1.046 MB / 0.5353 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001522/0.621, allocations: 389.9 kB / 0.5357 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/0.6223, allocations: 1.127 MB / 0.5368 GB, free: 106.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6223, allocations: 0 / 0.5368 GB, free: 106.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09162/0.714, allocations: 63.61 MB / 0.5989 GB, free: 49.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.28/17, allocations: 4 kB / 0.5989 GB, free: 49.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.104072605987312]