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.001315/0.001315, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001235/0.001235, allocations: 194.8 kB / 18 MB, free: 5.07 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.001121, allocations: 39.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2854, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005159/0.2906, allocations: 4.219 MB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2928, allocations: 1.18 MB / 405.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003459/0.2932, allocations: 12 kB / 405.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002731/0.2934, allocations: 114.8 kB / 405.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.2939, allocations: 178.3 kB / 405.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006802/0.2946, allocations: 327.5 kB / 406.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.2957, allocations: 1.097 MB / 407.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.2962, allocations: 282.6 kB / 407.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004867/0.2967, allocations: 406.8 kB / 408 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.2972, allocations: 466.2 kB / 408.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.2973, allocations: 120 kB / 408.6 MB, free: 408 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.2975, allocations: 120 kB / 408.7 MB, free: 288 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/0.2977, allocations: 219.3 kB / 408.9 MB, free: 68 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.2981, allocations: 450.1 kB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.2995, allocations: 1.221 MB / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2996, allocations: 3.938 kB / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2996, allocations: 0 / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.2996, allocations: 0 / 410.6 MB, free: 14.4 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.003028/0.3026, allocations: 1.266 MB / 411.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3027, allocations: 8.031 kB / 411.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.3028, allocations: 98.7 kB / 412 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.303, allocations: 84 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007369/0.3038, allocations: 481.5 kB / 412.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.3038, allocations: 45.69 kB / 412.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.304, allocations: 60.38 kB / 412.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.3061, allocations: 0.9721 MB / 413.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3061, allocations: 7.938 kB / 413.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.3062, allocations: 24 kB / 413.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.3062, allocations: 16 kB / 413.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002901/0.3091, allocations: 0.9991 MB / 414.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005156/0.3143, allocations: 3.184 MB / 417.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00246/0.3168, allocations: 0.9067 MB / 418.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.318, allocations: 441.8 kB / 419.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.3181, allocations: 24.47 kB / 419.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.3193, allocations: 469 kB / 419.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.3193, allocations: 0 / 419.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.00334/0.3227, allocations: 1.092 MB / 420.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002649/0.3229, allocations: 376.3 kB / 421.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007997/0.3238, allocations: 0.577 MB / 421.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.3238, allocations: 41.64 kB / 421.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.3241, allocations: 367.6 kB / 422.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.3243, allocations: 169.6 kB / 422.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002431/0.3245, allocations: 138.6 kB / 422.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3247, allocations: 378.7 kB / 422.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.3259, allocations: 405.7 kB / 423.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.3273, allocations: 0.6733 MB / 423.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/0.3296, allocations: 0.9662 MB / 424.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3296, allocations: 4 kB / 424.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002852/0.3325, allocations: 1.142 MB / 425.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.477e-05/0.3325, allocations: 63.41 kB / 426 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.3326, allocations: 8 kB / 426 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.3326, allocations: 8 kB / 426 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.3336, allocations: 227.7 kB / 426.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.3336, allocations: 11.94 kB / 426.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.3347, allocations: 187 kB / 426.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.314e-05/0.3348, allocations: 31.94 kB / 426.5 MB, free: 13.78 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.0003269/0.3351, allocations: 234 kB / 426.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3352, allocations: 63.25 kB / 426.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.3354, allocations: 74.41 kB / 426.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3354, allocations: 8 kB / 426.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3354, allocations: 0 / 426.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3354, allocations: 3.984 kB / 426.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/0.3387, allocations: 1.673 MB / 428.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3387, allocations: 0 / 428.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007731/0.3395, allocations: 151.7 kB / 428.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3395, allocations: 8 kB / 428.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.3396, allocations: 11.98 kB / 428.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.3396, allocations: 0 / 428.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3396, allocations: 3.938 kB / 428.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.3429, allocations: 1.295 MB / 430 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.3431, allocations: 140.3 kB / 430.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.982e-05/0.3432, allocations: 16 kB / 430.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007769/0.344, allocations: 107.9 kB / 430.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3442, allocations: 52.31 kB / 430.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.3442, allocations: 12 kB / 430.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005629/0.3448, allocations: 402.8 kB / 430.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3448, allocations: 0 / 430.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.3454, allocations: 183.7 kB / 430.9 MB, free: 9.266 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.003861/0.3493, allocations: 1.866 MB / 432.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002871/0.3522, allocations: 0.9925 MB / 433.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.3522, allocations: 0 / 433.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.3533, allocations: 415.3 kB / 434.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.3539, allocations: 122.2 kB / 434.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.3659, allocations: 6.445 MB / 440.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.3664, allocations: 0.8824 MB / 441.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004199/0.3668, allocations: 80.86 kB / 441.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.3672, allocations: 231.4 kB / 441.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3672, allocations: 0 / 441.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03859/0.4058, allocations: 14.39 MB / 456.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.852/9.258, allocations: 15.14 kB / 456.3 MB, free: 15.65 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