Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002243/0.002243, allocations: 181.8 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 51.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2519, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01537/0.2673, allocations: 14.08 MB / 436.7 MB, free: 460 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02668/0.294, allocations: 20.33 MB / 457 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.2963, allocations: 193.8 kB / 457.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.2997, allocations: 1.126 MB / 458.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007673/0.3074, allocations: 2.32 MB / 460.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004883/0.3123, allocations: 1.445 MB / 462.1 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.3234, allocations: 6.388 MB / 468.5 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007809/0.3242, allocations: 260.9 kB / 468.8 MB, free: 240 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.3262, allocations: 1.097 MB / 469.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001856/0.328, allocations: 1.06 MB / 470.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003364/0.3284, allocations: 68 kB / 471 MB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004962/0.3333, allocations: 1.475 MB / 472.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005008/0.3338, allocations: 309.7 kB / 472.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001872/0.3357, allocations: 1.296 MB / 474.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006128/0.3418, allocations: 3.655 MB / 477.7 MB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3418, allocations: 0 / 477.7 MB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3418, allocations: 0 / 477.7 MB, free: 7.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.342, allocations: 0 / 477.7 MB, free: 7.242 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.006536/0.3485, allocations: 3.547 MB / 481.3 MB, free: 3.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3485, allocations: 8.031 kB / 481.3 MB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002106/0.3488, allocations: 94.52 kB / 481.4 MB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006258/0.3494, allocations: 405.5 kB / 481.8 MB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00462/0.354, allocations: 2.358 MB / 484.1 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/0.354, allocations: 29 kB / 484.1 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.3542, allocations: 51.95 kB / 484.2 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.3558, allocations: 0.7031 MB / 484.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3558, allocations: 0 / 484.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.3558, allocations: 27.92 kB / 484.9 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.3559, allocations: 19.98 kB / 484.9 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.3575, allocations: 0.789 MB / 485.7 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0063/0.3638, allocations: 2.835 MB / 488.6 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.3651, allocations: 0.5636 MB / 489.1 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009846/0.3661, allocations: 0.5733 MB / 489.7 MB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02668/0.3928, allocations: 13.72 MB / 0.4916 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007996/0.3936, allocations: 365.6 kB / 0.492 GB, free: 12.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.826e-06/0.3936, allocations: 0 / 0.492 GB, free: 12.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003408/0.397, allocations: 1.326 MB / 0.4933 GB, free: 11.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.397, allocations: 59.41 kB / 0.4933 GB, free: 11.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004358/0.4014, allocations: 2.803 MB / 0.4961 GB, free: 8.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.4014, allocations: 37.7 kB / 0.4961 GB, free: 8.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.4028, allocations: 1.396 MB / 0.4975 GB, free: 6.855 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.403, allocations: 166.6 kB / 0.4976 GB, free: 6.691 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003365/0.4034, allocations: 230.3 kB / 0.4978 GB, free: 6.461 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4035, allocations: 341.9 kB / 0.4982 GB, free: 6.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006964/0.4042, allocations: 237.9 kB / 0.4984 GB, free: 5.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008968/0.4051, allocations: 0.5889 MB / 0.499 GB, free: 5.129 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.4066, allocations: 0.8841 MB / 0.4998 GB, free: 4.074 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/0.4066, allocations: 4 kB / 0.4998 GB, free: 4.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002435/0.4091, allocations: 1.285 MB / 0.5011 GB, free: 2.773 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4091, allocations: 8 kB / 0.5011 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/0.4092, allocations: 84.16 kB / 0.5012 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005653/0.4098, allocations: 278.4 kB / 0.5014 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006207/0.4104, allocations: 175.7 kB / 0.5016 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.4115, allocations: 0.8725 MB / 0.5025 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.4127, allocations: 111.3 kB / 0.5026 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.4128, allocations: 67.94 kB / 0.5026 GB, free: 1.164 MB / 414.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.0007867/0.4136, allocations: 425.5 kB / 0.503 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005809/0.4141, allocations: 389.6 kB / 0.5034 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003058/0.4172, allocations: 1.259 MB / 0.5046 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.4172, allocations: 4 kB / 0.5046 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4172, allocations: 0 / 0.5046 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4172, allocations: 7.922 kB / 0.5047 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.4216, allocations: 2.149 MB / 0.5068 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001026/0.4217, allocations: 72 kB / 0.5068 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.422, allocations: 63.88 kB / 0.5069 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004727/0.4224, allocations: 262.4 kB / 0.5071 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.4225, allocations: 35.98 kB / 0.5072 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009492/0.4235, allocations: 0.8634 MB / 0.508 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4235, allocations: 0 / 0.508 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.4254, allocations: 1.139 MB / 0.5091 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000922/0.4264, allocations: 411.2 kB / 0.5095 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000401/0.4268, allocations: 15.94 kB / 0.5095 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.4275, allocations: 31.95 kB / 0.5096 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.4276, allocations: 55.94 kB / 0.5096 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.034e-05/0.4277, allocations: 43.98 kB / 0.5097 GB, free: 9.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002735/0.4305, allocations: 1.816 MB / 0.5114 GB, free: 7.992 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4305, allocations: 4 kB / 0.5114 GB, free: 7.988 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001417/0.4319, allocations: 0.5735 MB / 0.512 GB, free: 7.414 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.003458/0.4353, allocations: 2.363 MB / 0.5143 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.4373, allocations: 0.8183 MB / 0.5151 GB, free: 4.164 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4373, allocations: 4.125 kB / 0.5151 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000934/0.4382, allocations: 468.2 kB / 0.5155 GB, free: 3.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.4408, allocations: 0.6065 MB / 0.5161 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02909/0.4699, allocations: 16.04 MB / 0.5318 GB, free: 2.469 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.4715, allocations: 1.604 MB / 0.5334 GB, free: 0.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001187/0.4727, allocations: 394.9 kB / 0.5337 GB, free: 452 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1864/0.659, allocations: 1.119 MB / 0.5348 GB, free: 110.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.659, allocations: 0 / 0.5348 GB, free: 110.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/0.762, allocations: 63.1 MB / 0.5965 GB, free: 56.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.32/20.08, allocations: 6.484 kB / 0.5965 GB, free: 56.86 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 23.44366537197493]