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.001185/0.001185, allocations: 106.8 kB / 17.05 MB, free: 6.09 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.001262/0.001262, allocations: 192 kB / 18 MB, free: 5.184 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009307/0.0009307, allocations: 43.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2879, allocations: 49.43 MB / 400.2 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01283/0.3008, allocations: 14.01 MB / 414.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02352/0.3244, allocations: 20.27 MB / 434.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003011/0.3274, allocations: 118.9 kB / 434.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003295/0.3307, allocations: 1.123 MB / 435.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008508/0.3393, allocations: 2.297 MB / 438 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005337/0.3447, allocations: 1.428 MB / 439.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01001/0.3547, allocations: 6.356 MB / 445.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007915/0.3556, allocations: 424.4 kB / 446.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.3572, allocations: 1.069 MB / 447.3 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.3585, allocations: 1.048 MB / 448.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001773/0.3587, allocations: 72 kB / 448.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003927/0.3626, allocations: 1.479 MB / 449.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000393/0.363, allocations: 305.8 kB / 450.2 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001515/0.3645, allocations: 1.296 MB / 451.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005888/0.3704, allocations: 3.651 MB / 455.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3705, allocations: 0 / 455.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3705, allocations: 0 / 455.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.365e-05/0.3706, allocations: 0 / 455.1 MB, free: 1.656 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.005517/0.3761, allocations: 3.622 MB / 458.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3762, allocations: 8.031 kB / 458.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.3763, allocations: 102.5 kB / 458.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004564/0.3768, allocations: 397.5 kB / 459.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.3804, allocations: 2.531 MB / 461.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.3805, allocations: 36.98 kB / 461.8 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3806, allocations: 55.89 kB / 461.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3819, allocations: 0.6953 MB / 462.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3819, allocations: 4 kB / 462.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.382, allocations: 23.94 kB / 462.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.382, allocations: 23.97 kB / 462.6 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.3836, allocations: 0.7812 MB / 463.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004918/0.3885, allocations: 2.891 MB / 466.3 MB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.3898, allocations: 0.7015 MB / 467 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009801/0.3908, allocations: 0.651 MB / 467.7 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03042/0.4212, allocations: 30.09 MB / 497.7 MB, free: 2.684 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007649/0.422, allocations: 369.5 kB / 498.1 MB, free: 2.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.086e-06/0.422, allocations: 0 / 498.1 MB, free: 2.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003128/0.4252, allocations: 1.401 MB / 499.5 MB, free: 0.8789 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.4252, allocations: 67.38 kB / 499.6 MB, free: 0.8008 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003211/0.4284, allocations: 2.803 MB / 0.4906 GB, free: 13.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.4285, allocations: 37.7 kB / 0.4906 GB, free: 13.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.4296, allocations: 1.396 MB / 0.492 GB, free: 12.53 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.4298, allocations: 170.6 kB / 0.4922 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.4301, allocations: 226.3 kB / 0.4924 GB, free: 12.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4302, allocations: 338 kB / 0.4927 GB, free: 11.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.4307, allocations: 241.8 kB / 0.4929 GB, free: 11.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007538/0.4315, allocations: 0.5891 MB / 0.4935 GB, free: 10.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.4329, allocations: 0.8802 MB / 0.4944 GB, free: 9.758 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.4329, allocations: 8 kB / 0.4944 GB, free: 9.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002191/0.4351, allocations: 1.285 MB / 0.4956 GB, free: 8.453 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.4351, allocations: 22.73 kB / 0.4956 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/0.4352, allocations: 80 kB / 0.4957 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005382/0.4358, allocations: 278.2 kB / 0.496 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.4363, allocations: 171.7 kB / 0.4962 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009123/0.4373, allocations: 0.882 MB / 0.497 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4383, allocations: 111.2 kB / 0.4971 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.64e-05/0.4384, allocations: 72 kB / 0.4972 GB, free: 6.832 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.0007221/0.4391, allocations: 425.4 kB / 0.4976 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004162/0.4395, allocations: 381.6 kB / 0.498 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/0.4421, allocations: 1.267 MB / 0.4992 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4422, allocations: 4 kB / 0.4992 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.4422, allocations: 3.938 kB / 0.4992 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.4422, allocations: 7.938 kB / 0.4992 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003557/0.4458, allocations: 2.197 MB / 0.5014 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.797e-05/0.4459, allocations: 68 kB / 0.5014 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.4462, allocations: 63.94 kB / 0.5015 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004462/0.4466, allocations: 260.9 kB / 0.5017 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.4467, allocations: 35.94 kB / 0.5018 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008695/0.4476, allocations: 0.8647 MB / 0.5026 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4476, allocations: 4.031 kB / 0.5026 GB, free: 1.129 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.4496, allocations: 1.139 MB / 0.5037 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000914/0.4505, allocations: 482.4 kB / 0.5042 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.4509, allocations: 15.94 kB / 0.5042 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/0.4517, allocations: 31.95 kB / 0.5042 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.4519, allocations: 67.88 kB / 0.5043 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.319e-05/0.4519, allocations: 39.98 kB / 0.5043 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002474/0.4544, allocations: 1.824 MB / 0.5061 GB, free: 13.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4544, allocations: 0 / 0.5061 GB, free: 13.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001431/0.4559, allocations: 0.5657 MB / 0.5067 GB, free: 12.91 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.003333/0.4592, allocations: 2.385 MB / 0.509 GB, free: 10.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.4611, allocations: 0.8544 MB / 0.5098 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4611, allocations: 0 / 0.5098 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009372/0.4621, allocations: 492 kB / 0.5103 GB, free: 9.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/0.4649, allocations: 0.5954 MB / 0.5109 GB, free: 8.512 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/0.4882, allocations: 16.05 MB / 0.5266 GB, free: 7.906 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.4895, allocations: 1.604 MB / 0.5281 GB, free: 6.273 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4907, allocations: 390.9 kB / 0.5285 GB, free: 5.887 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/0.4918, allocations: 1.124 MB / 0.5296 GB, free: 4.762 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4918, allocations: 0 / 0.5296 GB, free: 4.762 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2935/0.7853, allocations: 62.2 MB / 0.5903 GB, free: 87.96 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.27/19.06, allocations: 11.7 kB / 0.5903 GB, free: 87.95 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