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.001451/0.001451, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.001789/0.001789, allocations: 200 kB / 18.01 MB, free: 4.938 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.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 39.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2585, allocations: 49.44 MB / 400.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004996/0.2635, allocations: 4.227 MB / 404.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.2654, allocations: 1.176 MB / 405.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.2656, allocations: 12 kB / 405.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002423/0.2659, allocations: 114.8 kB / 405.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.2662, allocations: 178.3 kB / 405.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.2668, allocations: 323.5 kB / 406.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009698/0.2678, allocations: 1.113 MB / 407.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003937/0.2682, allocations: 278.6 kB / 407.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004173/0.2686, allocations: 402.8 kB / 408 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004473/0.2691, allocations: 466.2 kB / 408.5 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.2692, allocations: 116 kB / 408.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.2694, allocations: 124 kB / 408.7 MB, free: 408 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.2695, allocations: 223.3 kB / 408.9 MB, free: 184 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000371/0.2699, allocations: 446.1 kB / 409.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000997/0.2709, allocations: 1.225 MB / 410.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2709, allocations: 0 / 410.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2709, allocations: 0 / 410.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.271, allocations: 0 / 410.6 MB, free: 14.52 MB / 334.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.002625/0.2736, allocations: 1.289 MB / 411.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.2736, allocations: 8.031 kB / 411.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.2738, allocations: 102.7 kB / 412 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.2739, allocations: 92.42 kB / 412.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.2745, allocations: 478 kB / 412.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.2746, allocations: 49.62 kB / 412.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.263e-05/0.2747, allocations: 60.34 kB / 412.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.2767, allocations: 0.9644 MB / 413.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.2768, allocations: 3.938 kB / 413.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.662e-05/0.2768, allocations: 28 kB / 413.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.2769, allocations: 16 kB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002752/0.2796, allocations: 0.9991 MB / 414.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004473/0.2841, allocations: 3.192 MB / 417.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002221/0.2863, allocations: 0.9067 MB / 418.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.2875, allocations: 441.7 kB / 419.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.316e-05/0.2875, allocations: 20.56 kB / 419.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/0.2887, allocations: 465.1 kB / 419.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.325e-06/0.2887, allocations: 7.938 kB / 419.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003146/0.2919, allocations: 1.096 MB / 420.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.292, allocations: 376.3 kB / 421.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007664/0.2928, allocations: 0.5733 MB / 421.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.2929, allocations: 41.7 kB / 421.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.2932, allocations: 380.4 kB / 422.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.2933, allocations: 174.5 kB / 422.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.2936, allocations: 142.6 kB / 422.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2937, allocations: 374.8 kB / 422.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.2948, allocations: 405.7 kB / 423.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.2962, allocations: 0.6733 MB / 423.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.2984, allocations: 0.9778 MB / 424.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2984, allocations: 0 / 424.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002727/0.3011, allocations: 1.138 MB / 426 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.3012, allocations: 59.41 kB / 426.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3012, allocations: 12.28 kB / 426.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.3013, allocations: 8 kB / 426.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009527/0.3022, allocations: 223.6 kB / 426.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.3022, allocations: 11.94 kB / 426.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009683/0.3032, allocations: 187.2 kB / 426.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.715e-05/0.3033, allocations: 43.98 kB / 426.5 MB, free: 13.84 MB / 350.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.0003032/0.3036, allocations: 226 kB / 426.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.587e-05/0.3037, allocations: 71.58 kB / 426.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.3039, allocations: 70.41 kB / 426.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3039, allocations: 4 kB / 426.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3039, allocations: 0 / 426.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3039, allocations: 3.984 kB / 426.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003159/0.3071, allocations: 1.685 MB / 428.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3071, allocations: 0 / 428.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007473/0.3078, allocations: 147.8 kB / 428.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.3079, allocations: 4 kB / 428.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.3079, allocations: 12 kB / 428.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3079, allocations: 4 kB / 428.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3079, allocations: 11.94 kB / 428.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.3111, allocations: 1.288 MB / 430.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.3113, allocations: 160.6 kB / 430.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.3114, allocations: 15.98 kB / 430.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007461/0.3122, allocations: 95.86 kB / 430.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.3123, allocations: 64.25 kB / 430.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.3124, allocations: 16 kB / 430.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000602/0.313, allocations: 402.8 kB / 430.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.313, allocations: 0 / 430.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006133/0.3136, allocations: 179.7 kB / 431 MB, free: 9.301 MB / 350.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.003547/0.3172, allocations: 1.863 MB / 432.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.3197, allocations: 1 MB / 433.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3197, allocations: 0 / 433.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.3208, allocations: 411.3 kB / 434.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.3215, allocations: 116.8 kB / 434.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.3335, allocations: 6.479 MB / 440.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.3339, allocations: 0.8746 MB / 441.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004088/0.3343, allocations: 88.86 kB / 441.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.3347, allocations: 239.3 kB / 442 MB, free: 13.89 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3348, allocations: 0 / 442 MB, free: 13.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03691/0.3717, allocations: 14.38 MB / 456.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.521/8.893, allocations: 12.3 kB / 456.4 MB, free: 15.66 MB / 382.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