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.001379/0.001379, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001448/0.001448, allocations: 211.4 kB / 24.48 MB, free: 3.977 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.438/1.438, allocations: 230.6 MB / 258.3 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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 47.92 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2415, allocations: 53.37 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005281/0.2468, allocations: 3.824 MB / 436.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.2488, allocations: 1.183 MB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.2491, allocations: 15.94 kB / 437.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.2493, allocations: 102.9 kB / 437.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003601/0.2497, allocations: 190.3 kB / 437.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006094/0.2503, allocations: 339.6 kB / 438 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.2513, allocations: 1.089 MB / 439.1 MB, free: 0 / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003618/0.2517, allocations: 195.1 kB / 439.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.2521, allocations: 426.8 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.2526, allocations: 458.3 kB / 440.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.2528, allocations: 120 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.2529, allocations: 116 kB / 440.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.2531, allocations: 227.3 kB / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003777/0.2535, allocations: 374.5 kB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.2547, allocations: 1.237 MB / 442.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2547, allocations: 0 / 442.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2547, allocations: 0 / 442.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.2547, allocations: 4 kB / 442.2 MB, free: 12.88 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.003005/0.2577, allocations: 1.206 MB / 443.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2578, allocations: 8.031 kB / 443.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.2579, allocations: 88.42 kB / 443.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007154/0.2587, allocations: 424 kB / 443.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.2587, allocations: 53.69 kB / 443.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.2588, allocations: 56.38 kB / 444 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.2613, allocations: 1.274 MB / 445.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2613, allocations: 0 / 445.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.2614, allocations: 28 kB / 445.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.2614, allocations: 16 kB / 445.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002927/0.2643, allocations: 0.9952 MB / 446.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/0.2692, allocations: 2.829 MB / 449.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.2716, allocations: 0.7433 MB / 449.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.2728, allocations: 413.9 kB / 450.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.313e-05/0.2729, allocations: 20.36 kB / 450.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.2742, allocations: 465.1 kB / 450.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.335e-06/0.2742, allocations: 0 / 450.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003452/0.2776, allocations: 1.096 MB / 451.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002274/0.2778, allocations: 372.4 kB / 452.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.2786, allocations: 0.5416 MB / 452.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.2787, allocations: 37.7 kB / 452.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.279, allocations: 384.3 kB / 453.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.2792, allocations: 178.5 kB / 453.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003107/0.2795, allocations: 138.6 kB / 453.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.2797, allocations: 370.8 kB / 453.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.2809, allocations: 461.1 kB / 454.3 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.2826, allocations: 1.033 MB / 455.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.2848, allocations: 0.9752 MB / 456.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.2848, allocations: 4 kB / 456.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00294/0.2878, allocations: 1.19 MB / 457.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.2878, allocations: 71.39 kB / 457.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.2878, allocations: 7.938 kB / 457.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.2879, allocations: 15.94 kB / 457.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.2889, allocations: 224 kB / 457.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.289, allocations: 11.94 kB / 457.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.29, allocations: 187.2 kB / 458 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-05/0.2901, allocations: 31.94 kB / 458 MB, free: 12.17 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.0003172/0.2904, allocations: 229.5 kB / 458.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.2905, allocations: 67.56 kB / 458.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.2907, allocations: 69.94 kB / 458.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2907, allocations: 8 kB / 458.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.2907, allocations: 0 / 458.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2907, allocations: 0 / 458.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/0.294, allocations: 1.458 MB / 459.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.294, allocations: 0 / 459.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008336/0.2948, allocations: 147.8 kB / 460 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.2948, allocations: 4 kB / 460 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.766e-05/0.2949, allocations: 11.98 kB / 460 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2949, allocations: 0 / 460 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2949, allocations: 3.938 kB / 460 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003371/0.2983, allocations: 1.307 MB / 461.3 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.2984, allocations: 67.53 kB / 461.4 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2985, allocations: 16 kB / 461.4 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007835/0.2993, allocations: 103.9 kB / 461.5 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.2994, allocations: 56.33 kB / 461.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.2994, allocations: 12 kB / 461.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005529/0.3, allocations: 370.8 kB / 461.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3, allocations: 0 / 461.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006056/0.3006, allocations: 183.7 kB / 462.1 MB, free: 8.012 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.000154/0.3008, allocations: 119.1 kB / 462.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.3033, allocations: 1.023 MB / 463.3 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3033, allocations: 4 kB / 463.3 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3044, allocations: 391.4 kB / 463.7 MB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.305, allocations: 94.25 kB / 463.7 MB, free: 6.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.3074, allocations: 1.247 MB / 465 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.3077, allocations: 284.4 kB / 465.3 MB, free: 4.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.3081, allocations: 80.66 kB / 465.3 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.3083, allocations: 55.42 kB / 465.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3083, allocations: 0 / 465.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of Templates: time 0.01691/0.3252, allocations: 9.691 MB / 475.1 MB, free: 11.08 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/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: 4.74769007100258]