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.001742/0.001742, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002212/0.002212, allocations: 212.8 kB / 23.73 MB, free: 4.531 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.00151/0.00151, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005685/0.2585, allocations: 3.825 MB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.2608, allocations: 1.193 MB / 436.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.2611, allocations: 8 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.2614, allocations: 114.8 kB / 436.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004062/0.2618, allocations: 186.3 kB / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.2625, allocations: 331.6 kB / 436.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.2637, allocations: 1.093 MB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003487/0.264, allocations: 179.1 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.2645, allocations: 414.8 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004992/0.265, allocations: 398.3 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.2652, allocations: 120 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.2655, allocations: 120 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.2657, allocations: 227.3 kB / 439.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004364/0.2661, allocations: 378.4 kB / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.2675, allocations: 1.23 MB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2675, allocations: 0 / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2675, allocations: 0 / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.2675, allocations: 3.984 kB / 440.8 MB, free: 12.84 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.003078/0.2706, allocations: 1.206 MB / 442.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.2706, allocations: 8.031 kB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.2708, allocations: 106.7 kB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.2709, allocations: 84.42 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007739/0.2717, allocations: 424.1 kB / 442.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.2717, allocations: 49.69 kB / 442.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.2719, allocations: 60.38 kB / 442.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002423/0.2743, allocations: 1.269 MB / 444 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.2743, allocations: 0 / 444 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.07e-05/0.2744, allocations: 28 kB / 444.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.2744, allocations: 16 kB / 444.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002964/0.2774, allocations: 0.9952 MB / 445.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00497/0.2823, allocations: 2.922 MB / 448 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.2846, allocations: 0.7358 MB / 448.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.2858, allocations: 429 kB / 449.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.2858, allocations: 8.422 kB / 449.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.2871, allocations: 476.3 kB / 449.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.635e-06/0.2871, allocations: 0 / 449.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003329/0.2905, allocations: 1.096 MB / 450.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002417/0.2907, allocations: 380.3 kB / 451.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00088/0.2916, allocations: 0.5887 MB / 451.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.2916, allocations: 37.7 kB / 451.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.292, allocations: 372.5 kB / 452.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.2921, allocations: 178.5 kB / 452.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000266/0.2924, allocations: 146.5 kB / 452.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.2926, allocations: 374.8 kB / 452.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.2939, allocations: 457.1 kB / 453.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.2957, allocations: 1.036 MB / 454.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.2981, allocations: 0.979 MB / 455.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.2981, allocations: 8 kB / 455.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003178/0.3013, allocations: 1.198 MB / 456.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.279e-05/0.3014, allocations: 59.41 kB / 456.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3014, allocations: 8 kB / 456.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.3014, allocations: 8 kB / 456.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.3024, allocations: 227.9 kB / 456.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/0.3024, allocations: 15.94 kB / 456.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3035, allocations: 187.2 kB / 456.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.725e-05/0.3036, allocations: 35.98 kB / 457 MB, free: 11.86 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.0003428/0.3039, allocations: 233.5 kB / 457.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.304, allocations: 67.58 kB / 457.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.3042, allocations: 74.41 kB / 457.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3042, allocations: 4 kB / 457.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3042, allocations: 4 kB / 457.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3042, allocations: 3.984 kB / 457.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.3076, allocations: 1.52 MB / 458.9 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3076, allocations: 0 / 458.9 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.3084, allocations: 147.8 kB / 459 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-06/0.3084, allocations: 4 kB / 459 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/0.3084, allocations: 15.98 kB / 459 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3085, allocations: 0 / 459 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3085, allocations: 3.938 kB / 459 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003366/0.3118, allocations: 1.304 MB / 460.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.312, allocations: 71.44 kB / 460.4 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.611e-05/0.3121, allocations: 15.98 kB / 460.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007545/0.3128, allocations: 107.9 kB / 460.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.313, allocations: 52.23 kB / 460.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-05/0.313, allocations: 19.98 kB / 460.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006001/0.3136, allocations: 402.8 kB / 461 MB, free: 7.754 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3136, allocations: 3.938 kB / 461 MB, free: 7.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006161/0.3142, allocations: 171.8 kB / 461.2 MB, free: 7.582 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.003839/0.318, allocations: 1.866 MB / 463 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.3207, allocations: 1.027 MB / 464.1 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3207, allocations: 0 / 464.1 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.3218, allocations: 390.9 kB / 464.4 MB, free: 4.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006432/0.3224, allocations: 114.2 kB / 464.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.3349, allocations: 6.702 MB / 471.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.3352, allocations: 280.6 kB / 471.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004062/0.3356, allocations: 88.84 kB / 471.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/0.336, allocations: 227.4 kB / 471.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.336, allocations: 8 kB / 471.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07018/0.4062, allocations: 15.89 MB / 487.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.78, allocations: 10.55 kB / 487.7 MB, free: 12.88 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.430863218847662]