Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001406/0.001406, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 207.4 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 63.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2676, allocations: 53.4 MB / 431.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005456/0.2731, allocations: 3.828 MB / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.2751, allocations: 1.189 MB / 436.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002503/0.2754, allocations: 15.94 kB / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002444/0.2756, allocations: 102.9 kB / 436.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003226/0.276, allocations: 182.3 kB / 436.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006592/0.2766, allocations: 339.6 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.2777, allocations: 1.097 MB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.278, allocations: 179 kB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.2784, allocations: 414.8 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004865/0.2789, allocations: 406.2 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.2791, allocations: 124 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.2792, allocations: 116 kB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.2795, allocations: 227.3 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.2798, allocations: 366.5 kB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.2809, allocations: 1.234 MB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2809, allocations: 0 / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2809, allocations: 0 / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.281, allocations: 0 / 440.9 MB, free: 12.63 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.002704/0.2837, allocations: 1.206 MB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.2837, allocations: 15.98 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.2838, allocations: 106.6 kB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.284, allocations: 96.34 kB / 442.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.2846, allocations: 408.2 kB / 442.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.2847, allocations: 45.69 kB / 442.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.2848, allocations: 68.36 kB / 442.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.2871, allocations: 1.266 MB / 444.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2871, allocations: 0 / 444.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.338e-05/0.2872, allocations: 31.98 kB / 444.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.2872, allocations: 16 kB / 444.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002883/0.2901, allocations: 0.999 MB / 445.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004711/0.2948, allocations: 2.93 MB / 448.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.297, allocations: 0.7344 MB / 448.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.2982, allocations: 421.8 kB / 449.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.2982, allocations: 12.42 kB / 449.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.2994, allocations: 465 kB / 449.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.765e-06/0.2994, allocations: 4 kB / 449.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003239/0.3026, allocations: 1.096 MB / 450.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002255/0.3029, allocations: 376.3 kB / 451.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008975/0.3038, allocations: 0.5887 MB / 451.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.753e-05/0.3038, allocations: 37.7 kB / 451.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.3042, allocations: 380.6 kB / 452.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3043, allocations: 178.5 kB / 452.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/0.3046, allocations: 138.6 kB / 452.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.3048, allocations: 374.8 kB / 452.8 MB, free: 216 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.3061, allocations: 465 kB / 453.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.3077, allocations: 1.036 MB / 454.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.3099, allocations: 0.9751 MB / 455.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.31, allocations: 4 kB / 455.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002975/0.3129, allocations: 1.201 MB / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/0.313, allocations: 63.41 kB / 456.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.313, allocations: 4 kB / 456.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.635e-05/0.3131, allocations: 12 kB / 456.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.3141, allocations: 227.8 kB / 456.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.3141, allocations: 12 kB / 456.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.3152, allocations: 191.2 kB / 457 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.169e-05/0.3153, allocations: 35.98 kB / 457 MB, free: 11.64 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.0003551/0.3156, allocations: 221.6 kB / 457.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3157, allocations: 67.58 kB / 457.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.3159, allocations: 78.41 kB / 457.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.3159, allocations: 7.984 kB / 457.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.3159, allocations: 0 / 457.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3159, allocations: 3.984 kB / 457.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.3193, allocations: 1.512 MB / 458.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3193, allocations: 0 / 458.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007792/0.32, allocations: 151.8 kB / 459.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.3201, allocations: 4 kB / 459.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.3201, allocations: 12 kB / 459.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.3201, allocations: 3.938 kB / 459.1 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3201, allocations: 7.938 kB / 459.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003311/0.3234, allocations: 1.307 MB / 460.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.3236, allocations: 75.41 kB / 460.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.946e-05/0.3237, allocations: 16 kB / 460.5 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007369/0.3244, allocations: 103.9 kB / 460.6 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3245, allocations: 52.3 kB / 460.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.3246, allocations: 15.98 kB / 460.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.3251, allocations: 402.8 kB / 461.1 MB, free: 7.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3251, allocations: 0 / 461.1 MB, free: 7.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005995/0.3257, allocations: 175.8 kB / 461.2 MB, free: 7.371 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.003637/0.3294, allocations: 1.863 MB / 463.1 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002602/0.332, allocations: 1.028 MB / 464.1 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.332, allocations: 4 kB / 464.1 MB, free: 4.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3331, allocations: 390.3 kB / 464.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006415/0.3337, allocations: 102.1 kB / 464.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.346, allocations: 6.705 MB / 471.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.3463, allocations: 280.6 kB / 471.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004356/0.3467, allocations: 84.84 kB / 471.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.3471, allocations: 231.4 kB / 471.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3471, allocations: 3.938 kB / 471.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04879/0.3959, allocations: 15.89 MB / 487.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.72, allocations: 7.438 kB / 487.8 MB, free: 12.62 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.348890156950802]