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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 113.8 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 189.4 kB / 18 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2516, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01461/0.2663, allocations: 14.03 MB / 414.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02478/0.2911, allocations: 20.27 MB / 434.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.2932, allocations: 118.9 kB / 434.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.2962, allocations: 1.111 MB / 435.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007271/0.3035, allocations: 2.27 MB / 438 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004476/0.308, allocations: 1.424 MB / 439.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.3183, allocations: 6.36 MB / 445.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007684/0.3191, allocations: 424.4 kB / 446.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.3207, allocations: 1.042 MB / 447.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.322, allocations: 1.052 MB / 448.3 MB, free: 8.504 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.3222, allocations: 76 kB / 448.4 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004109/0.3263, allocations: 1.467 MB / 449.8 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000397/0.3267, allocations: 309.8 kB / 450.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.3283, allocations: 1.296 MB / 451.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005629/0.3339, allocations: 3.651 MB / 455.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3339, allocations: 0 / 455.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3339, allocations: 0 / 455.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.73e-05/0.334, allocations: 0 / 455.1 MB, free: 1.684 MB / 366.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.005358/0.3393, allocations: 3.622 MB / 458.7 MB, free: 13.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3394, allocations: 16.03 kB / 458.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.3395, allocations: 90.52 kB / 458.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004397/0.34, allocations: 397.5 kB / 459.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003509/0.3435, allocations: 2.531 MB / 461.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.3435, allocations: 37 kB / 461.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.3437, allocations: 51.95 kB / 461.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.345, allocations: 0.703 MB / 462.5 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.345, allocations: 7.922 kB / 462.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.3451, allocations: 23.98 kB / 462.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.3451, allocations: 16 kB / 462.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.3467, allocations: 0.789 MB / 463.4 MB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005008/0.3517, allocations: 2.876 MB / 466.2 MB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.3531, allocations: 0.6992 MB / 466.9 MB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.3541, allocations: 0.6627 MB / 467.6 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0308/0.3849, allocations: 30.09 MB / 497.7 MB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007766/0.3858, allocations: 365.5 kB / 498.1 MB, free: 2.344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.3858, allocations: 0 / 498.1 MB, free: 2.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003373/0.3892, allocations: 1.409 MB / 499.5 MB, free: 0.9023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.3892, allocations: 67.34 kB / 499.5 MB, free: 0.8242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/0.3928, allocations: 2.799 MB / 0.4906 GB, free: 14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.539e-05/0.3929, allocations: 33.7 kB / 0.4906 GB, free: 13.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.3942, allocations: 1.4 MB / 0.492 GB, free: 12.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.3944, allocations: 166.6 kB / 0.4921 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.3947, allocations: 226.3 kB / 0.4923 GB, free: 12.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3948, allocations: 345.9 kB / 0.4927 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/0.3954, allocations: 233.9 kB / 0.4929 GB, free: 11.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008501/0.3963, allocations: 0.5891 MB / 0.4935 GB, free: 10.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.3978, allocations: 0.8802 MB / 0.4943 GB, free: 9.789 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.3978, allocations: 8 kB / 0.4943 GB, free: 9.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002443/0.4002, allocations: 1.297 MB / 0.4956 GB, free: 8.473 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.4003, allocations: 16.06 kB / 0.4956 GB, free: 8.457 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/0.4004, allocations: 76 kB / 0.4957 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005809/0.401, allocations: 276.7 kB / 0.4959 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.4016, allocations: 167.7 kB / 0.4961 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.4026, allocations: 0.8784 MB / 0.497 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000974/0.4036, allocations: 123.3 kB / 0.4971 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.4037, allocations: 64 kB / 0.4971 GB, free: 6.859 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.000727/0.4044, allocations: 421.5 kB / 0.4975 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004455/0.4049, allocations: 381.6 kB / 0.4979 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.4077, allocations: 1.27 MB / 0.4991 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.4077, allocations: 4 kB / 0.4992 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4077, allocations: 0 / 0.4992 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.4077, allocations: 7.922 kB / 0.4992 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.4114, allocations: 2.197 MB / 0.5013 GB, free: 2.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.566e-05/0.4115, allocations: 68 kB / 0.5014 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.4118, allocations: 68 kB / 0.5014 GB, free: 2.344 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.4123, allocations: 252.8 kB / 0.5017 GB, free: 2.094 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.836e-05/0.4124, allocations: 39.98 kB / 0.5017 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009407/0.4133, allocations: 0.8638 MB / 0.5026 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4133, allocations: 0 / 0.5026 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.4153, allocations: 1.151 MB / 0.5037 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007287/0.416, allocations: 490.3 kB / 0.5041 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.4163, allocations: 12 kB / 0.5042 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005989/0.4169, allocations: 27.97 kB / 0.5042 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.4171, allocations: 59.94 kB / 0.5042 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/0.4172, allocations: 40 kB / 0.5043 GB, free: 15.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002546/0.4197, allocations: 1.831 MB / 0.5061 GB, free: 13.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4197, allocations: 0 / 0.5061 GB, free: 13.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001331/0.4211, allocations: 0.5696 MB / 0.5066 GB, free: 12.94 MB / 446.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.003409/0.4245, allocations: 2.383 MB / 0.509 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.4264, allocations: 0.8504 MB / 0.5098 GB, free: 9.648 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.4264, allocations: 0 / 0.5098 GB, free: 9.648 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009362/0.4273, allocations: 492.1 kB / 0.5103 GB, free: 9.141 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.4297, allocations: 0.5877 MB / 0.5108 GB, free: 8.547 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/0.453, allocations: 16.05 MB / 0.5265 GB, free: 7.941 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.4544, allocations: 1.596 MB / 0.5281 GB, free: 6.316 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001137/0.4555, allocations: 394.9 kB / 0.5284 GB, free: 5.926 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/0.4568, allocations: 1.128 MB / 0.5295 GB, free: 4.797 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4568, allocations: 0 / 0.5295 GB, free: 4.797 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2833/0.7401, allocations: 62.2 MB / 0.5903 GB, free: 88.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.7/19.44, allocations: 18.86 kB / 0.5903 GB, free: 88 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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 8e-11 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/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) Reference file matches