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.0007544/0.0007544, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008352/0.0008352, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8838/0.8838, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 2.866e-06/2.866e-06, allocations: 4 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.76e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003388/0.003416, allocations: 3.826 MB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.00508, allocations: 1.191 MB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/0.00532, allocations: 15.94 kB / 329.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.005501, allocations: 106.8 kB / 329.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.00576, allocations: 198.1 kB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.00623, allocations: 327.6 kB / 330.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006726/0.006902, allocations: 1.12 MB / 331.3 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.007135, allocations: 183.1 kB / 331.5 MB, free: 8.879 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004967/0.007632, allocations: 0.6044 MB / 332.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.007924, allocations: 363 kB / 332.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.227e-05/0.008016, allocations: 120 kB / 332.6 MB, free: 7.801 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.339e-05/0.0081, allocations: 116 kB / 332.7 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.00821, allocations: 227.3 kB / 332.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.008409, allocations: 319.3 kB / 333.2 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007774/0.009186, allocations: 1.297 MB / 334.5 MB, free: 5.852 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.009188, allocations: 0 / 334.5 MB, free: 5.852 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.009189, allocations: 0 / 334.5 MB, free: 5.852 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.009206, allocations: 0 / 334.5 MB, free: 5.852 MB / 298.7 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.001631/0.01084, allocations: 1.202 MB / 335.7 MB, free: 4.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.01087, allocations: 15.98 kB / 335.7 MB, free: 4.586 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.239e-05/0.01095, allocations: 98.7 kB / 335.8 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.724e-05/0.01105, allocations: 84.42 kB / 335.9 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.01151, allocations: 423.3 kB / 336.3 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.01154, allocations: 45.69 kB / 336.4 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.689e-05/0.0116, allocations: 68.36 kB / 336.4 MB, free: 3.844 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.0129, allocations: 1.262 MB / 337.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.01292, allocations: 192 / 337.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/0.01296, allocations: 32.12 kB / 337.7 MB, free: 2.414 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.01297, allocations: 16 kB / 337.7 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.01474, allocations: 0.9952 MB / 338.7 MB, free: 1.398 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.01769, allocations: 2.92 MB / 341.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.01893, allocations: 0.7356 MB / 342.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.01958, allocations: 418 kB / 342.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.01962, allocations: 16.48 kB / 342.8 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006828/0.0203, allocations: 465.9 kB / 343.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.314e-06/0.0203, allocations: 0 / 343.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001761/0.02206, allocations: 1.102 MB / 344.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.02217, allocations: 376.3 kB / 344.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004994/0.02267, allocations: 0.5925 MB / 345.3 MB, free: 10.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.02272, allocations: 41.7 kB / 345.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.02289, allocations: 372.6 kB / 345.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.02311, allocations: 178.5 kB / 345.9 MB, free: 9.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.02326, allocations: 142.6 kB / 346 MB, free: 9.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.02336, allocations: 374.8 kB / 346.4 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.024, allocations: 461.1 kB / 346.9 MB, free: 8.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/0.02481, allocations: 1.036 MB / 347.9 MB, free: 7.734 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.026, allocations: 0.9714 MB / 348.9 MB, free: 6.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.02601, allocations: 4 kB / 348.9 MB, free: 6.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001799/0.02781, allocations: 1.201 MB / 350.1 MB, free: 5.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.02785, allocations: 63.34 kB / 350.1 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.02786, allocations: 11.98 kB / 350.1 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.02788, allocations: 12 kB / 350.2 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.02836, allocations: 220 kB / 350.4 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.02838, allocations: 15.94 kB / 350.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.02888, allocations: 187.2 kB / 350.6 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.02892, allocations: 35.98 kB / 350.6 MB, free: 4.875 MB / 314.7 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.0002046/0.02913, allocations: 221.6 kB / 350.8 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.02919, allocations: 71.52 kB / 350.9 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.123e-05/0.02928, allocations: 74.41 kB / 351 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.02928, allocations: 8 kB / 351 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.02929, allocations: 0 / 351 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.02929, allocations: 3.984 kB / 351 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.03117, allocations: 1.518 MB / 352.5 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.03117, allocations: 0 / 352.5 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.03156, allocations: 155.7 kB / 352.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.03156, allocations: 4 kB / 352.6 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.03159, allocations: 12 kB / 352.7 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.0316, allocations: 0 / 352.7 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.0316, allocations: 3.984 kB / 352.7 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.03337, allocations: 1.317 MB / 354 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.039e-05/0.03345, allocations: 71.47 kB / 354.1 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.03351, allocations: 12 kB / 354.1 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.03386, allocations: 107.9 kB / 354.2 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.03395, allocations: 52.41 kB / 354.2 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.03398, allocations: 12 kB / 354.2 MB, free: 1.168 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003333/0.03431, allocations: 402.8 kB / 354.6 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03431, allocations: 0 / 354.6 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004275/0.03474, allocations: 179.8 kB / 354.8 MB, free: 0.6016 MB / 314.7 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.002352/0.03709, allocations: 1.869 MB / 356.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.03868, allocations: 1.021 MB / 357.7 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.03868, allocations: 3.938 kB / 357.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.03925, allocations: 398.7 kB / 358.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.03971, allocations: 97.28 kB / 358.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00772/0.04743, allocations: 6.673 MB / 364.9 MB, free: 6.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.0476, allocations: 280.6 kB / 365.1 MB, free: 5.875 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002756/0.04788, allocations: 80.86 kB / 365.2 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.04815, allocations: 236.4 kB / 365.4 MB, free: 5.559 MB / 330.7 MB Notification: Performance of SimCode: time 1.703e-06/0.04815, allocations: 3.938 kB / 365.4 MB, free: 5.555 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.07952, allocations: 15.95 MB / 381.4 MB, free: 5.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/6.97, allocations: 15.86 kB / 381.4 MB, free: 5.805 MB / 346.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/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] "" Variables in the reference:time,Nand.C4.v,Nand.C7.v Variables in the result:time,Nand.C4.v,Nand.C7.v [Calling sys.exit(0), Time elapsed: 8.760418888181448]