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.001638/0.001638, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.002123/0.002123, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.477/1.477, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001684/0.001684, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1337, allocations: 53.32 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005957/0.1397, allocations: 4.274 MB / 430.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2066/0.3463, allocations: 1.198 MB / 431.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.3467, allocations: 14.38 kB / 431.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.3469, allocations: 107.8 kB / 431.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.3472, allocations: 188.5 kB / 432.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.3478, allocations: 329.4 kB / 432.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009457/0.3488, allocations: 1.092 MB / 433.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.349, allocations: 195.2 kB / 433.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.3494, allocations: 420.1 kB / 434.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.3498, allocations: 467.1 kB / 434.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.3499, allocations: 124.1 kB / 434.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.3501, allocations: 119.1 kB / 434.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.3502, allocations: 218.5 kB / 435 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.3506, allocations: 445.5 kB / 435.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.3518, allocations: 1.226 MB / 436.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3519, allocations: 1.859 kB / 436.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3519, allocations: 0 / 436.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.3519, allocations: 0 / 436.7 MB, free: 6.336 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.002892/0.3548, allocations: 1.276 MB / 438 MB, free: 5.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3548, allocations: 10.16 kB / 438 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.3549, allocations: 105 kB / 438.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.3551, allocations: 88.12 kB / 438.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.3557, allocations: 490.7 kB / 438.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.3557, allocations: 47 kB / 438.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3559, allocations: 54.67 kB / 438.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.358, allocations: 0.9744 MB / 439.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.358, allocations: 1.953 kB / 439.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.689e-05/0.3581, allocations: 29.8 kB / 439.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.3581, allocations: 14.72 kB / 439.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002926/0.361, allocations: 1 MB / 440.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.3656, allocations: 3.208 MB / 444 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.3679, allocations: 0.8827 MB / 444.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.3691, allocations: 428.3 kB / 445.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.381e-05/0.3691, allocations: 16.36 kB / 445.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.3704, allocations: 462.3 kB / 445.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.407e-06/0.3704, allocations: 1.125 kB / 445.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003505/0.3739, allocations: 1.098 MB / 446.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.374, allocations: 374.7 kB / 447.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009583/0.3749, allocations: 0.5728 MB / 447.8 MB, free: 320 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.331e-05/0.375, allocations: 43.92 kB / 447.8 MB, free: 276 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.3753, allocations: 378.1 kB / 448.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.3755, allocations: 182.1 kB / 448.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.3757, allocations: 141 kB / 448.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.3759, allocations: 373.5 kB / 448.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.3772, allocations: 402.4 kB / 449.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.3788, allocations: 0.6775 MB / 449.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002586/0.3814, allocations: 0.9728 MB / 450.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.3814, allocations: 5.938 kB / 450.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003448/0.3848, allocations: 1.139 MB / 452 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.07e-05/0.3849, allocations: 63.14 kB / 452.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.3849, allocations: 6.875 kB / 452.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.929e-05/0.385, allocations: 10.23 kB / 452.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.3861, allocations: 222.2 kB / 452.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.353e-05/0.3861, allocations: 15.02 kB / 452.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.3873, allocations: 191 kB / 452.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.508e-05/0.3874, allocations: 34.97 kB / 452.6 MB, free: 13.66 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.0003947/0.3878, allocations: 226.8 kB / 452.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.3879, allocations: 73.52 kB / 452.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/0.3881, allocations: 74.88 kB / 452.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3881, allocations: 5.344 kB / 453 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.3881, allocations: 0 / 453 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.3881, allocations: 2.391 kB / 453 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003834/0.392, allocations: 1.671 MB / 454.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.392, allocations: 0 / 454.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008021/0.3928, allocations: 152.9 kB / 454.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3928, allocations: 1.25 kB / 454.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.3928, allocations: 11.84 kB / 454.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.3928, allocations: 3.094 kB / 454.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.3928, allocations: 3.938 kB / 454.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003574/0.3964, allocations: 1.306 MB / 456.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002415/0.3966, allocations: 157.2 kB / 456.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.3968, allocations: 12.41 kB / 456.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007746/0.3975, allocations: 105.2 kB / 456.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3977, allocations: 52.47 kB / 456.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.3977, allocations: 14.2 kB / 456.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006831/0.3984, allocations: 403.1 kB / 456.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3984, allocations: 0 / 456.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007343/0.3991, allocations: 184.1 kB / 457 MB, free: 10.98 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.003893/0.403, allocations: 1.861 MB / 458.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002888/0.4059, allocations: 0.9618 MB / 459.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.4059, allocations: 5.469 kB / 459.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.407, allocations: 390.4 kB / 460.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007318/0.4078, allocations: 118.4 kB / 460.3 MB, free: 8.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.4211, allocations: 6.468 MB / 466.8 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.4216, allocations: 0.8818 MB / 467.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004293/0.422, allocations: 82 kB / 467.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/0.4224, allocations: 238.8 kB / 468 MB, free: 3.691 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4224, allocations: 0 / 468 MB, free: 3.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.4657, allocations: 14.5 MB / 482.5 MB, free: 6.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.886/9.352, allocations: 13.56 kB / 482.5 MB, free: 6.641 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.980647631004103]