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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 55.92 kB / 365.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1059, allocations: 52.13 MB / 417.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005683/0.1115, allocations: 4.26 MB / 422 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.114, allocations: 1.184 MB / 423.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003103/0.1143, allocations: 11.94 kB / 423.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.1146, allocations: 110.9 kB / 423.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003814/0.115, allocations: 186.3 kB / 423.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006924/0.1156, allocations: 323.5 kB / 423.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.1167, allocations: 1.097 MB / 424.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003294/0.1171, allocations: 194.6 kB / 425.1 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004284/0.1175, allocations: 414.8 kB / 425.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.118, allocations: 462.2 kB / 426 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.1181, allocations: 120 kB / 426.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.1183, allocations: 119.9 kB / 426.2 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.1185, allocations: 223.4 kB / 426.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000414/0.1189, allocations: 458 kB / 426.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.1202, allocations: 1.222 MB / 428.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1202, allocations: 0 / 428.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1202, allocations: 0 / 428.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.1202, allocations: 4 kB / 428.1 MB, free: 2.332 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.002956/0.1232, allocations: 1.274 MB / 429.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1232, allocations: 12.03 kB / 429.4 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.1234, allocations: 102.7 kB / 429.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.1235, allocations: 88.42 kB / 429.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006822/0.1242, allocations: 489.9 kB / 430.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.1242, allocations: 41.69 kB / 430.1 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.1243, allocations: 60.38 kB / 430.2 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.1266, allocations: 0.9682 MB / 431.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.1266, allocations: 7.938 kB / 431.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.59e-05/0.1267, allocations: 24 kB / 431.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.1267, allocations: 16 kB / 431.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003132/0.1299, allocations: 1.003 MB / 432.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00529/0.1352, allocations: 3.181 MB / 435.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.1377, allocations: 0.8856 MB / 436.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.1389, allocations: 425.7 kB / 436.7 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.139, allocations: 20.47 kB / 436.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.1402, allocations: 465 kB / 437.1 MB, free: 8.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.1402, allocations: 0 / 437.1 MB, free: 8.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.00347/0.1437, allocations: 1.104 MB / 438.2 MB, free: 7.828 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002407/0.144, allocations: 368.3 kB / 438.6 MB, free: 7.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000863/0.1448, allocations: 0.5811 MB / 439.2 MB, free: 6.789 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.1449, allocations: 37.7 kB / 439.2 MB, free: 6.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.1452, allocations: 376.4 kB / 439.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.1453, allocations: 174.5 kB / 439.8 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.1457, allocations: 142.6 kB / 439.9 MB, free: 6.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.1458, allocations: 374.8 kB / 440.3 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.1471, allocations: 405.7 kB / 440.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.1487, allocations: 0.6733 MB / 441.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002467/0.1511, allocations: 0.9778 MB / 442.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.1511, allocations: 7.984 kB / 442.3 MB, free: 3.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003193/0.1543, allocations: 1.13 MB / 443.4 MB, free: 2.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.456e-05/0.1544, allocations: 73.73 kB / 443.5 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1544, allocations: 4 kB / 443.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.1544, allocations: 12 kB / 443.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.1555, allocations: 219.9 kB / 443.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.1555, allocations: 15.98 kB / 443.8 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.1566, allocations: 187.2 kB / 444 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.885e-05/0.1566, allocations: 35.94 kB / 444 MB, free: 1.719 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.0003352/0.157, allocations: 230.1 kB / 444.2 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.1571, allocations: 67.58 kB / 444.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.1573, allocations: 74.34 kB / 444.3 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1573, allocations: 8 kB / 444.4 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1573, allocations: 0 / 444.4 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1573, allocations: 3.984 kB / 444.4 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2025/0.3598, allocations: 1.672 MB / 446 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3598, allocations: 0 / 446 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007522/0.3606, allocations: 149.9 kB / 446.2 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3606, allocations: 4.5 kB / 446.2 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.3606, allocations: 11.42 kB / 446.2 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3606, allocations: 5.312 kB / 446.2 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3606, allocations: 3.75 kB / 446.2 MB, free: 30 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.3637, allocations: 1.3 MB / 447.5 MB, free: 29.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3638, allocations: 146.5 kB / 447.6 MB, free: 29.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.123e-05/0.3639, allocations: 12.95 kB / 447.7 MB, free: 29.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.3646, allocations: 102.7 kB / 447.8 MB, free: 29.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3647, allocations: 54.53 kB / 447.8 MB, free: 29.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.3648, allocations: 17.52 kB / 447.8 MB, free: 29.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004778/0.3652, allocations: 407.3 kB / 448.2 MB, free: 29.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3652, allocations: 0.5469 kB / 448.2 MB, free: 29.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.3658, allocations: 177.9 kB / 448.4 MB, free: 29.68 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.003305/0.3691, allocations: 1.862 MB / 450.3 MB, free: 29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002484/0.3716, allocations: 0.9696 MB / 451.2 MB, free: 28.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3716, allocations: 1.219 kB / 451.2 MB, free: 28.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3727, allocations: 390.1 kB / 451.6 MB, free: 28.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006067/0.3733, allocations: 105.6 kB / 451.7 MB, free: 28.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.3854, allocations: 6.462 MB / 458.2 MB, free: 26.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.3859, allocations: 0.8828 MB / 459.1 MB, free: 25.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005307/0.3865, allocations: 90.08 kB / 459.2 MB, free: 25.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/0.3869, allocations: 233.5 kB / 459.4 MB, free: 25.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.455e-06/0.3869, allocations: 0 / 459.4 MB, free: 25.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0605/0.4474, allocations: 14.47 MB / 473.9 MB, free: 20.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.592/10.04, allocations: 19.55 kB / 473.9 MB, free: 20.14 MB / 366.1 MB " [Timeout remaining time 650] (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 1.97668e-11 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.682971970643848]