Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",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.001404/0.001404, allocations: 106.3 kB / 16.92 MB, free: 5.766 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.001684/0.001684, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.374/1.374, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000983/0.000983, allocations: 47.05 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09548, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005197/0.1007, allocations: 4.222 MB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1027, allocations: 1.172 MB / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.1031, allocations: 11.94 kB / 355.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.1034, allocations: 106.9 kB / 355.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.1038, allocations: 186.3 kB / 355.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006222/0.1045, allocations: 331.5 kB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008915/0.1054, allocations: 1.089 MB / 357.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003601/0.1057, allocations: 286.5 kB / 357.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003519/0.1061, allocations: 406.8 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004274/0.1065, allocations: 462.2 kB / 358.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.1067, allocations: 120 kB / 358.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.1068, allocations: 120 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.107, allocations: 219.4 kB / 358.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003603/0.1074, allocations: 458 kB / 359.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008911/0.1083, allocations: 1.211 MB / 360.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1083, allocations: 3.938 kB / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1083, allocations: 0 / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.1083, allocations: 0 / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002769/0.1111, allocations: 1.263 MB / 361.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1111, allocations: 16.03 kB / 361.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.1113, allocations: 102.7 kB / 361.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.1114, allocations: 84 kB / 362 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/0.112, allocations: 477.5 kB / 362.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.1121, allocations: 45.69 kB / 362.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.1122, allocations: 56.38 kB / 362.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.1144, allocations: 0.9682 MB / 363.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1144, allocations: 0 / 363.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.1145, allocations: 28 kB / 363.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1145, allocations: 16 kB / 363.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003018/0.1175, allocations: 0.9991 MB / 364.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004656/0.1222, allocations: 3.196 MB / 367.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002374/0.1246, allocations: 0.9192 MB / 368.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.1258, allocations: 433.8 kB / 369.1 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.701e-05/0.1258, allocations: 24.41 kB / 369.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00126/0.1271, allocations: 465 kB / 369.6 MB, free: 500 kB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.354e-06/0.1271, allocations: 0 / 369.6 MB, free: 500 kB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.1777/0.3048, allocations: 1.088 MB / 370.6 MB, free: 25.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/0.3049, allocations: 372.2 kB / 371 MB, free: 25.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00082/0.3057, allocations: 0.5744 MB / 371.6 MB, free: 25.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.3058, allocations: 38.27 kB / 371.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.306, allocations: 367.5 kB / 372 MB, free: 24.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.3062, allocations: 167.2 kB / 372.1 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002448/0.3064, allocations: 140.5 kB / 372.3 MB, free: 24.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.3065, allocations: 374.3 kB / 372.6 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.3078, allocations: 404 kB / 373 MB, free: 24.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.3092, allocations: 0.6742 MB / 373.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002261/0.3114, allocations: 0.982 MB / 374.7 MB, free: 23.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3115, allocations: 1.344 kB / 374.7 MB, free: 23.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002816/0.3143, allocations: 1.14 MB / 375.8 MB, free: 23.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.3143, allocations: 66.58 kB / 375.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.3143, allocations: 6.25 kB / 375.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.3144, allocations: 11 kB / 375.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3154, allocations: 216.6 kB / 376.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.3154, allocations: 16.3 kB / 376.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.3165, allocations: 185 kB / 376.3 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-05/0.3166, allocations: 37.23 kB / 376.4 MB, free: 22.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002544/0.3168, allocations: 228.4 kB / 376.6 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.151e-05/0.3169, allocations: 71.81 kB / 376.7 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.3171, allocations: 71.05 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3171, allocations: 5.094 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.3171, allocations: 1.344 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3171, allocations: 3.047 kB / 376.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.3203, allocations: 1.673 MB / 378.4 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3204, allocations: 8.375 kB / 378.4 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008128/0.3212, allocations: 149.2 kB / 378.6 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.3212, allocations: 2.219 kB / 378.6 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/0.3213, allocations: 11.02 kB / 378.6 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3213, allocations: 1.938 kB / 378.6 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3213, allocations: 1.094 kB / 378.6 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003348/0.3246, allocations: 1.301 MB / 379.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.3248, allocations: 146.1 kB / 380 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.3249, allocations: 17.14 kB / 380 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000822/0.3257, allocations: 100.7 kB / 380.1 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3259, allocations: 49.52 kB / 380.2 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.3259, allocations: 23.58 kB / 380.2 MB, free: 21.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000623/0.3266, allocations: 401.4 kB / 380.6 MB, free: 20.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3266, allocations: 0 / 380.6 MB, free: 20.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007017/0.3273, allocations: 182.1 kB / 380.8 MB, free: 20.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003732/0.331, allocations: 1.866 MB / 382.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.3339, allocations: 1.019 MB / 383.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.3339, allocations: 1.25 kB / 383.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3351, allocations: 411 kB / 384.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000686/0.3358, allocations: 105.8 kB / 384.2 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.3491, allocations: 6.621 MB / 390.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.3496, allocations: 0.8797 MB / 391.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008311/0.3504, allocations: 86.62 kB / 391.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005615/0.351, allocations: 234.3 kB / 392 MB, free: 14.31 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.351, allocations: 0 / 392 MB, free: 14.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03627/0.3873, allocations: 14.21 MB / 406.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.695, allocations: 19.81 kB / 406.2 MB, free: 1.703 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches