Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002488/0.002488, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 47.91 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2495, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005954/0.2555, allocations: 4.275 MB / 435.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002863/0.2584, allocations: 1.238 MB / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000428/0.2588, allocations: 11.94 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.2591, allocations: 106.9 kB / 436.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004025/0.2595, allocations: 190.3 kB / 437 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006986/0.2602, allocations: 335.6 kB / 437.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2614, allocations: 1.085 MB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003762/0.2617, allocations: 195 kB / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005772/0.2623, allocations: 422.8 kB / 439 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006048/0.2629, allocations: 466.2 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.2631, allocations: 120 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.2632, allocations: 120 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.2635, allocations: 223.3 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004212/0.2639, allocations: 450 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.2652, allocations: 1.227 MB / 441.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2652, allocations: 4 kB / 441.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2652, allocations: 3.938 kB / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.2652, allocations: 0 / 441.6 MB, free: 12.4 MB / 350.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.002852/0.268, allocations: 1.202 MB / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2681, allocations: 8.031 kB / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.2682, allocations: 102.7 kB / 442.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.2684, allocations: 96.41 kB / 443 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007168/0.2691, allocations: 416.2 kB / 443.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.2691, allocations: 45.69 kB / 443.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.2693, allocations: 60.36 kB / 443.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.2713, allocations: 0.9682 MB / 444.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.2714, allocations: 0 / 444.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.326e-05/0.2714, allocations: 31.94 kB / 444.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.2715, allocations: 16 kB / 444.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.2742, allocations: 0.9991 MB / 445.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004997/0.2792, allocations: 3.148 MB / 448.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.2814, allocations: 0.7434 MB / 449.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.2826, allocations: 417.8 kB / 449.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.2826, allocations: 16.48 kB / 449.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.2838, allocations: 468.3 kB / 450.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.555e-06/0.2838, allocations: 0 / 450.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003183/0.287, allocations: 1.104 MB / 451.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002337/0.2872, allocations: 376.3 kB / 451.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008421/0.2881, allocations: 0.5771 MB / 452.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.433e-05/0.2881, allocations: 37.7 kB / 452.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.2884, allocations: 384.4 kB / 452.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.2886, allocations: 178.5 kB / 452.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.2889, allocations: 142.6 kB / 453 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.2891, allocations: 370.8 kB / 453.4 MB, free: 140 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.2902, allocations: 405.7 kB / 453.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.2916, allocations: 0.6733 MB / 454.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.2939, allocations: 0.979 MB / 455.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.2939, allocations: 0 / 455.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002881/0.2968, allocations: 1.143 MB / 456.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.586e-05/0.2968, allocations: 63.41 kB / 456.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.2968, allocations: 8 kB / 456.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.2969, allocations: 8 kB / 456.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.2979, allocations: 227.9 kB / 456.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/0.2979, allocations: 11.94 kB / 456.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.2989, allocations: 187.2 kB / 457.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.299, allocations: 39.97 kB / 457.1 MB, free: 12.15 MB / 366.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.0003404/0.2993, allocations: 217.6 kB / 457.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.2994, allocations: 75.58 kB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.2996, allocations: 70.41 kB / 457.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2996, allocations: 7.938 kB / 457.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.2996, allocations: 0 / 457.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.2996, allocations: 3.984 kB / 457.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003376/0.303, allocations: 1.645 MB / 459.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.303, allocations: 0 / 459.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007761/0.3038, allocations: 155.7 kB / 459.3 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/0.3038, allocations: 4 kB / 459.3 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.3038, allocations: 12 kB / 459.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3038, allocations: 0 / 459.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.3038, allocations: 7.922 kB / 459.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.3071, allocations: 1.3 MB / 460.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.3073, allocations: 67.53 kB / 460.7 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3074, allocations: 16 kB / 460.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007491/0.3082, allocations: 103.9 kB / 460.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3083, allocations: 56.28 kB / 460.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.3083, allocations: 16 kB / 460.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006038/0.3089, allocations: 402.8 kB / 461.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3089, allocations: 0 / 461.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006326/0.3096, allocations: 183.8 kB / 461.4 MB, free: 7.758 MB / 366.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.003652/0.3132, allocations: 1.867 MB / 463.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.3158, allocations: 0.966 MB / 464.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.3158, allocations: 7.938 kB / 464.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.3168, allocations: 390.3 kB / 464.7 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.3174, allocations: 100.7 kB / 464.7 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.3293, allocations: 6.47 MB / 471.2 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.3299, allocations: 0.8785 MB / 472.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.3303, allocations: 84.84 kB / 472.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.3307, allocations: 235.4 kB / 472.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3307, allocations: 4 kB / 472.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04771/0.3784, allocations: 15.09 MB / 487.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.06, allocations: 7.188 kB / 487.5 MB, free: 13.55 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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 1.97668e-11 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.5948976030013]