Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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.001792/0.001792, allocations: 107.6 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.00226/0.00226, allocations: 206.1 kB / 24.48 MB, free: 3.973 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.553/1.553, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2443, allocations: 53.35 MB / 432.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00332/0.2476, allocations: 2.018 MB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.2499, allocations: 0.9979 MB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.25, allocations: 15.88 kB / 435.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.2501, allocations: 35.64 kB / 435.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.2503, allocations: 63.5 kB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.2507, allocations: 127.8 kB / 435.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004891/0.2512, allocations: 395.1 kB / 436 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2513, allocations: 83.17 kB / 436 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.2524, allocations: 0.9631 MB / 437 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.2526, allocations: 211.2 kB / 437.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.134e-05/0.2527, allocations: 36 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.36e-05/0.2528, allocations: 36 kB / 437.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.253, allocations: 163.4 kB / 437.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.2532, allocations: 194.5 kB / 437.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009496/0.2542, allocations: 0.9874 MB / 438.6 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2542, allocations: 0 / 438.6 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2542, allocations: 0 / 438.6 MB, free: 456 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2542, allocations: 0 / 438.6 MB, free: 456 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001332/0.2555, allocations: 1.07 MB / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2556, allocations: 8.031 kB / 439.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.2557, allocations: 88.42 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/0.2562, allocations: 382.9 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.2563, allocations: 12.38 kB / 440.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.2563, allocations: 20.38 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007006/0.257, allocations: 436.3 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.257, allocations: 4 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.2571, allocations: 8 kB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.2571, allocations: 4 kB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005295/0.2576, allocations: 330.7 kB / 440.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.2589, allocations: 0.7534 MB / 441.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.2595, allocations: 309.2 kB / 442 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.2598, allocations: 247.6 kB / 442.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.2598, allocations: 3.984 kB / 442.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006942/0.2605, allocations: 0.5087 MB / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.2605, allocations: 0 / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00155/0.2621, allocations: 0.9987 MB / 443.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2622, allocations: 174.2 kB / 443.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.2636, allocations: 1 MB / 444.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.474e-05/0.2637, allocations: 37.7 kB / 445 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.2638, allocations: 157.9 kB / 445.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.14e-05/0.2639, allocations: 63.61 kB / 445.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.2641, allocations: 169.3 kB / 445.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2643, allocations: 342.8 kB / 445.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.2647, allocations: 250.8 kB / 445.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.265, allocations: 295.8 kB / 446.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.2657, allocations: 0.4899 MB / 446.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.2657, allocations: 0 / 446.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001091/0.2668, allocations: 0.7254 MB / 447.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.2669, allocations: 134.8 kB / 447.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2669, allocations: 4 kB / 447.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2669, allocations: 0 / 447.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.864e-05/0.267, allocations: 15.98 kB / 447.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.267, allocations: 0 / 447.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.2672, allocations: 27.88 kB / 447.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.2674, allocations: 107.9 kB / 447.7 MB, free: 6.684 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0006482/0.268, allocations: 0.5418 MB / 448.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.2681, allocations: 79.53 kB / 448.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.2683, allocations: 134.5 kB / 448.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2683, allocations: 0 / 448.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2684, allocations: 0 / 448.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2684, allocations: 128 / 448.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006546/0.269, allocations: 0.5006 MB / 449 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.269, allocations: 4 kB / 449 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-05/0.2691, allocations: 8 kB / 449 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2691, allocations: 4 kB / 449 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.2691, allocations: 23.98 kB / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2691, allocations: 0 / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2691, allocations: 4 kB / 449 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.2703, allocations: 0.8452 MB / 449.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008873/0.2712, allocations: 0.493 MB / 450.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.2713, allocations: 23.98 kB / 450.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.2715, allocations: 19.98 kB / 450.4 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.2717, allocations: 51.95 kB / 450.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.2718, allocations: 119.9 kB / 450.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009962/0.2728, allocations: 0.7289 MB / 451.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2728, allocations: 0 / 451.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003707/0.2731, allocations: 88 kB / 451.4 MB, free: 2.891 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0001742/0.2733, allocations: 134.7 kB / 451.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.2744, allocations: 0.8115 MB / 452.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2744, allocations: 4 kB / 452.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.275, allocations: 0.5315 MB / 452.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000841/0.2758, allocations: 203.5 kB / 453 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.2781, allocations: 1.543 MB / 454.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.2786, allocations: 373.2 kB / 455 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.2789, allocations: 91.23 kB / 455 MB, free: 14.96 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2789, allocations: 4 kB / 455 MB, free: 14.96 MB / 366.1 MB Notification: Performance of Templates: time 0.008551/0.2874, allocations: 5.456 MB / 460.5 MB, free: 9.48 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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: 8.208993955980986]