Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2474, allocations: 50.54 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01498/0.2624, allocations: 14.02 MB / 422.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02594/0.2884, allocations: 20.3 MB / 443.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002723/0.2912, allocations: 126.9 kB / 443.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.2942, allocations: 1.107 MB / 444.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007679/0.3019, allocations: 2.27 MB / 446.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004903/0.3068, allocations: 1.432 MB / 448 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.3176, allocations: 6.426 MB / 454.4 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008495/0.3184, allocations: 428.4 kB / 454.8 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001765/0.3202, allocations: 1.042 MB / 455.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001474/0.3217, allocations: 1.056 MB / 456.9 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.3219, allocations: 71.94 kB / 457 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004261/0.3262, allocations: 1.479 MB / 458.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003573/0.3265, allocations: 305.8 kB / 458.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.3282, allocations: 1.296 MB / 460.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005678/0.3339, allocations: 3.655 MB / 463.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3339, allocations: 0 / 463.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3339, allocations: 4 kB / 463.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.661e-05/0.334, allocations: 0 / 463.7 MB, free: 10.27 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.0056/0.3396, allocations: 3.626 MB / 467.4 MB, free: 6.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3397, allocations: 12.03 kB / 467.4 MB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.3398, allocations: 94.5 kB / 467.5 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005431/0.3404, allocations: 389.6 kB / 467.9 MB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003801/0.3442, allocations: 2.535 MB / 470.4 MB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.3442, allocations: 37 kB / 470.4 MB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.3444, allocations: 47.98 kB / 470.5 MB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.3458, allocations: 0.6992 MB / 471.2 MB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3458, allocations: 4 kB / 471.2 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.907e-05/0.3459, allocations: 20 kB / 471.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.3459, allocations: 19.98 kB / 471.2 MB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.3475, allocations: 0.785 MB / 472 MB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005215/0.3527, allocations: 2.884 MB / 474.9 MB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.354, allocations: 0.6938 MB / 475.6 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3551, allocations: 0.6587 MB / 476.2 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03307/0.3882, allocations: 30.73 MB / 0.4951 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000796/0.389, allocations: 365.6 kB / 0.4954 GB, free: 10.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.795e-06/0.389, allocations: 0 / 0.4954 GB, free: 10.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003269/0.3923, allocations: 1.413 MB / 0.4968 GB, free: 8.715 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.3924, allocations: 63.39 kB / 0.4969 GB, free: 8.641 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/0.3963, allocations: 2.796 MB / 0.4996 GB, free: 5.824 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.833e-05/0.3964, allocations: 37.7 kB / 0.4996 GB, free: 5.781 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.3978, allocations: 1.392 MB / 0.501 GB, free: 4.383 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.398, allocations: 174.6 kB / 0.5012 GB, free: 4.211 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.3983, allocations: 230.4 kB / 0.5014 GB, free: 3.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.3985, allocations: 334 kB / 0.5017 GB, free: 3.648 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.3991, allocations: 241.8 kB / 0.5019 GB, free: 3.414 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008833/0.4, allocations: 0.593 MB / 0.5025 GB, free: 2.648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.4016, allocations: 0.8802 MB / 0.5034 GB, free: 1.602 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.4016, allocations: 4 kB / 0.5034 GB, free: 1.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002454/0.4041, allocations: 1.285 MB / 0.5046 GB, free: 308 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4041, allocations: 12 kB / 0.5046 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000138/0.4042, allocations: 91.91 kB / 0.5047 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006102/0.4049, allocations: 284.1 kB / 0.505 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006035/0.4055, allocations: 163.7 kB / 0.5052 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.4066, allocations: 0.8916 MB / 0.506 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.4077, allocations: 115.2 kB / 0.5061 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4078, allocations: 64 kB / 0.5062 GB, free: 14.67 MB / 446.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.0008244/0.4086, allocations: 429.3 kB / 0.5066 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004056/0.4091, allocations: 381.6 kB / 0.507 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/0.4119, allocations: 1.267 MB / 0.5082 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.4119, allocations: 4 kB / 0.5082 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4119, allocations: 0 / 0.5082 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.4119, allocations: 7.938 kB / 0.5082 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003786/0.4157, allocations: 2.193 MB / 0.5104 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001076/0.4158, allocations: 68.12 kB / 0.5104 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.4162, allocations: 71.88 kB / 0.5105 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004869/0.4166, allocations: 260.8 kB / 0.5107 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-05/0.4167, allocations: 32 kB / 0.5108 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009774/0.4177, allocations: 0.8641 MB / 0.5116 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4177, allocations: 0 / 0.5116 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.4197, allocations: 1.15 MB / 0.5127 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007636/0.4205, allocations: 486.4 kB / 0.5132 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.4208, allocations: 8 kB / 0.5132 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006334/0.4214, allocations: 39.89 kB / 0.5133 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4216, allocations: 59.95 kB / 0.5133 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.4217, allocations: 43.98 kB / 0.5134 GB, free: 7.148 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.4243, allocations: 1.816 MB / 0.5151 GB, free: 5.328 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4243, allocations: 0 / 0.5151 GB, free: 5.328 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001435/0.4258, allocations: 0.5696 MB / 0.5157 GB, free: 4.758 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.003537/0.4293, allocations: 2.374 MB / 0.518 GB, free: 2.336 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.4314, allocations: 0.8582 MB / 0.5188 GB, free: 1.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4314, allocations: 0 / 0.5188 GB, free: 1.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009395/0.4323, allocations: 492.5 kB / 0.5193 GB, free: 0.957 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.4348, allocations: 0.6065 MB / 0.5199 GB, free: 352 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2232/0.658, allocations: 16.06 MB / 0.5356 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.6598, allocations: 1.602 MB / 0.5372 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.661, allocations: 391.3 kB / 0.5375 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009143/0.6619, allocations: 1.125 MB / 0.5386 GB, free: 130.5 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6619, allocations: 0 / 0.5386 GB, free: 130.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0967/0.7586, allocations: 62.32 MB / 0.5995 GB, free: 74.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.99/19.75, allocations: 10.03 kB / 0.5995 GB, free: 74.84 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/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_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches