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.001743/0.001743, allocations: 127 kB / 17.8 MB, free: 5.262 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.001972/0.001972, allocations: 214.5 kB / 20.75 MB, free: 2.309 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.499/1.499, allocations: 230.5 MB / 254 MB, free: 15 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.002907/0.002907, allocations: 59.91 kB / 373 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.121, allocations: 53.37 MB / 426.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005564/0.1266, allocations: 4.276 MB / 430.6 MB, free: 300 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2163/0.3429, allocations: 1.202 MB / 431.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002988/0.3432, allocations: 12.12 kB / 431.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.3435, allocations: 111.8 kB / 432 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.3438, allocations: 184.9 kB / 432.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005418/0.3443, allocations: 327.9 kB / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009049/0.3452, allocations: 1.097 MB / 433.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.3455, allocations: 199.2 kB / 433.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/0.3459, allocations: 412.3 kB / 434.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004304/0.3463, allocations: 465.4 kB / 434.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.3465, allocations: 117.8 kB / 434.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.3467, allocations: 119.6 kB / 434.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.3468, allocations: 229.1 kB / 435.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003624/0.3472, allocations: 448.4 kB / 435.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.3485, allocations: 1.227 MB / 436.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3485, allocations: 0 / 436.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3485, allocations: 1.219 kB / 436.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.3485, allocations: 0 / 436.7 MB, free: 6.195 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.002957/0.3515, allocations: 1.275 MB / 438 MB, free: 5.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3516, allocations: 9 kB / 438 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.3517, allocations: 106.1 kB / 438.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.3518, allocations: 86.89 kB / 438.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006769/0.3525, allocations: 491 kB / 438.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.3526, allocations: 43.06 kB / 438.7 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.3527, allocations: 59.25 kB / 438.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/0.3549, allocations: 0.9672 MB / 439.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3549, allocations: 2.578 kB / 439.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.3549, allocations: 28.06 kB / 439.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.355, allocations: 14.03 kB / 439.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003008/0.358, allocations: 0.9999 MB / 440.8 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004391/0.3624, allocations: 3.208 MB / 444 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.3646, allocations: 0.8889 MB / 444.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.3658, allocations: 425.1 kB / 445.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.3658, allocations: 15.81 kB / 445.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.367, allocations: 462.2 kB / 445.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.896e-06/0.367, allocations: 0 / 445.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003286/0.3703, allocations: 1.102 MB / 446.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/0.3704, allocations: 370.6 kB / 447.2 MB, free: 452 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000782/0.3712, allocations: 0.5769 MB / 447.8 MB, free: 172 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.3712, allocations: 43.25 kB / 447.9 MB, free: 128 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003749/0.3716, allocations: 385.9 kB / 448.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3718, allocations: 176.9 kB / 448.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002809/0.372, allocations: 137.5 kB / 448.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.3723, allocations: 377.3 kB / 448.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.3736, allocations: 403.4 kB / 449.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.3751, allocations: 0.6762 MB / 450 MB, free: 14.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.3774, allocations: 0.9745 MB / 451 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3774, allocations: 1.5 kB / 451 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002946/0.3804, allocations: 1.136 MB / 452.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.091e-05/0.3804, allocations: 63.2 kB / 452.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.3804, allocations: 7.766 kB / 452.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3805, allocations: 9.625 kB / 452.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.3815, allocations: 225.5 kB / 452.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.3815, allocations: 20.61 kB / 452.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.3826, allocations: 195.1 kB / 452.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.021e-05/0.3827, allocations: 34.11 kB / 452.6 MB, free: 13.56 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.0003658/0.383, allocations: 234.6 kB / 452.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.3831, allocations: 68.02 kB / 452.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.3833, allocations: 72.03 kB / 453 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3833, allocations: 5.594 kB / 453 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.3834, allocations: 0 / 453 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3834, allocations: 2.859 kB / 453 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.3868, allocations: 1.671 MB / 454.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3868, allocations: 3.938 kB / 454.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007581/0.3876, allocations: 148.9 kB / 454.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.3876, allocations: 2.375 kB / 454.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.3876, allocations: 12.53 kB / 454.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3877, allocations: 6.391 kB / 454.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.3877, allocations: 3.938 kB / 454.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003448/0.3911, allocations: 1.307 MB / 456.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.3913, allocations: 153.5 kB / 456.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3914, allocations: 12.72 kB / 456.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007549/0.3921, allocations: 105.5 kB / 456.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3923, allocations: 51.97 kB / 456.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.3923, allocations: 18.23 kB / 456.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006108/0.3929, allocations: 406.2 kB / 456.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3929, allocations: 0 / 456.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006754/0.3936, allocations: 176.9 kB / 457.1 MB, free: 10.86 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.003735/0.3973, allocations: 1.862 MB / 458.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.4, allocations: 0.968 MB / 459.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4, allocations: 1.188 kB / 459.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.4011, allocations: 395.6 kB / 460.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006431/0.4018, allocations: 107.7 kB / 460.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.4146, allocations: 6.466 MB / 466.9 MB, free: 4.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.4151, allocations: 0.8811 MB / 467.7 MB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004433/0.4156, allocations: 80.62 kB / 467.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.416, allocations: 240.5 kB / 468 MB, free: 3.57 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.416, allocations: 3.938 kB / 468 MB, free: 3.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04233/0.4583, allocations: 14.5 MB / 482.6 MB, free: 6.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.651/9.109, allocations: 7.234 kB / 482.6 MB, free: 6.477 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.721617744071409]