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.001114/0.001114, allocations: 117.2 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.001238/0.001238, allocations: 200.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.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2524, allocations: 50.53 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01404/0.2665, allocations: 14.03 MB / 422.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02482/0.2913, allocations: 20.3 MB / 443.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.2938, allocations: 126.9 kB / 443.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00335/0.2972, allocations: 1.131 MB / 444.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008034/0.3053, allocations: 2.282 MB / 446.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005533/0.3109, allocations: 1.443 MB / 448 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.3219, allocations: 6.414 MB / 454.5 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.323, allocations: 428.3 kB / 454.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.3251, allocations: 1.073 MB / 455.9 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001858/0.327, allocations: 1.048 MB / 457 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004215/0.3274, allocations: 72 kB / 457.1 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006036/0.3335, allocations: 1.475 MB / 458.5 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005609/0.334, allocations: 313.8 kB / 458.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001798/0.3359, allocations: 1.296 MB / 460.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00563/0.3415, allocations: 3.655 MB / 463.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3415, allocations: 0 / 463.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3415, allocations: 0 / 463.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.265e-05/0.3416, allocations: 0 / 463.8 MB, free: 10.25 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.004959/0.3466, allocations: 3.63 MB / 467.4 MB, free: 6.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3466, allocations: 8.031 kB / 467.4 MB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.3467, allocations: 98.45 kB / 467.5 MB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003763/0.3471, allocations: 389.6 kB / 467.9 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/0.3505, allocations: 2.535 MB / 470.4 MB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.3506, allocations: 41 kB / 470.5 MB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3507, allocations: 44 kB / 470.5 MB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.352, allocations: 0.6992 MB / 471.2 MB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.352, allocations: 3.938 kB / 471.2 MB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/0.3521, allocations: 19.94 kB / 471.3 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.3521, allocations: 23.98 kB / 471.3 MB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.3536, allocations: 0.7851 MB / 472.1 MB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004735/0.3584, allocations: 2.888 MB / 474.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3597, allocations: 0.6976 MB / 475.6 MB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009819/0.3607, allocations: 0.6548 MB / 476.3 MB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02993/0.3906, allocations: 30.72 MB / 0.4951 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007892/0.3914, allocations: 369.6 kB / 0.4955 GB, free: 10.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3915, allocations: 0 / 0.4955 GB, free: 10.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003213/0.3947, allocations: 1.413 MB / 0.4969 GB, free: 8.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3948, allocations: 59.34 kB / 0.4969 GB, free: 8.609 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/0.3981, allocations: 2.799 MB / 0.4997 GB, free: 5.789 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.3981, allocations: 41.69 kB / 0.4997 GB, free: 5.742 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.3993, allocations: 1.392 MB / 0.5011 GB, free: 4.344 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3994, allocations: 174.6 kB / 0.5012 GB, free: 4.172 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.3997, allocations: 218.4 kB / 0.5014 GB, free: 3.953 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3998, allocations: 341.9 kB / 0.5018 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005642/0.4004, allocations: 241.9 kB / 0.502 GB, free: 3.379 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.4012, allocations: 0.593 MB / 0.5026 GB, free: 2.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.4026, allocations: 0.8763 MB / 0.5034 GB, free: 1.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.4026, allocations: 4 kB / 0.5034 GB, free: 1.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00212/0.4047, allocations: 1.285 MB / 0.5047 GB, free: 276 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.4047, allocations: 12 kB / 0.5047 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.4049, allocations: 80 kB / 0.5048 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000541/0.4054, allocations: 292.5 kB / 0.5051 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.406, allocations: 163.7 kB / 0.5052 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009837/0.407, allocations: 0.8952 MB / 0.5061 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009768/0.408, allocations: 107.3 kB / 0.5062 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.4081, allocations: 68 kB / 0.5063 GB, free: 14.64 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.0006523/0.4088, allocations: 437.4 kB / 0.5067 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/0.4091, allocations: 381.6 kB / 0.507 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.4118, allocations: 1.263 MB / 0.5083 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4119, allocations: 4 kB / 0.5083 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4119, allocations: 4 kB / 0.5083 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4119, allocations: 7.922 kB / 0.5083 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.4157, allocations: 2.193 MB / 0.5104 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001031/0.4158, allocations: 71.98 kB / 0.5105 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.4161, allocations: 63.89 kB / 0.5106 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004777/0.4166, allocations: 260.9 kB / 0.5108 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-05/0.4167, allocations: 35.98 kB / 0.5108 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009515/0.4177, allocations: 0.8679 MB / 0.5117 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4177, allocations: 4.031 kB / 0.5117 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.4196, allocations: 1.146 MB / 0.5128 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.4205, allocations: 482.4 kB / 0.5133 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/0.4209, allocations: 12 kB / 0.5133 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007734/0.4217, allocations: 27.97 kB / 0.5133 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.4218, allocations: 67.94 kB / 0.5134 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.907e-05/0.4219, allocations: 36 kB / 0.5134 GB, free: 7.121 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00268/0.4246, allocations: 1.824 MB / 0.5152 GB, free: 5.293 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4246, allocations: 0 / 0.5152 GB, free: 5.293 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001379/0.426, allocations: 0.5657 MB / 0.5157 GB, free: 4.727 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.003503/0.4295, allocations: 2.374 MB / 0.5181 GB, free: 2.305 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001874/0.4314, allocations: 0.8535 MB / 0.5189 GB, free: 1.434 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4314, allocations: 0 / 0.5189 GB, free: 1.434 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009457/0.4324, allocations: 497.2 kB / 0.5194 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.435, allocations: 0.6143 MB / 0.52 GB, free: 312 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.225/0.66, allocations: 16.05 MB / 0.5356 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/0.6623, allocations: 1.603 MB / 0.5372 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001542/0.6638, allocations: 392.5 kB / 0.5376 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.6653, allocations: 1.123 MB / 0.5387 GB, free: 130.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6654, allocations: 0 / 0.5387 GB, free: 130.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09431/0.7597, allocations: 62.32 MB / 0.5995 GB, free: 74.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.89/18.65, allocations: 6.406 kB / 0.5995 GB, free: 74.79 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.0.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