Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001187/0.001187, allocations: 112.1 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 206.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 59.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2408, allocations: 50.53 MB / 409.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003041/0.2439, allocations: 2.125 MB / 412.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.2461, allocations: 1.041 MB / 413.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.2462, allocations: 8 kB / 413.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.2464, allocations: 39.59 kB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.2466, allocations: 55.56 kB / 413.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.247, allocations: 127.8 kB / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.2474, allocations: 403.1 kB / 413.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.2477, allocations: 115 kB / 413.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000904/0.2486, allocations: 0.9708 MB / 414.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.2488, allocations: 191.2 kB / 415 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.859e-05/0.2489, allocations: 36 kB / 415 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.653e-05/0.249, allocations: 36 kB / 415.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.2492, allocations: 167.3 kB / 415.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.2495, allocations: 286.1 kB / 415.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008289/0.2503, allocations: 0.9727 MB / 416.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2503, allocations: 0 / 416.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2503, allocations: 0 / 416.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.2504, allocations: 0 / 416.5 MB, free: 11.19 MB / 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.001328/0.2517, allocations: 1.153 MB / 417.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2517, allocations: 8.031 kB / 417.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.2519, allocations: 84.42 kB / 417.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.2523, allocations: 436.8 kB / 418.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.2524, allocations: 24.36 kB / 418.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.11e-05/0.2525, allocations: 20.38 kB / 418.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.2531, allocations: 297.5 kB / 418.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.2531, allocations: 0 / 418.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.236e-05/0.2531, allocations: 15.98 kB / 418.5 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2531, allocations: 4 kB / 418.5 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.2536, allocations: 207.8 kB / 418.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.2548, allocations: 0.8864 MB / 419.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.2553, allocations: 214.5 kB / 419.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.2556, allocations: 160.8 kB / 420 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.2556, allocations: 3.938 kB / 420 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000543/0.2562, allocations: 386.1 kB / 420.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.2562, allocations: 7.938 kB / 420.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001379/0.2576, allocations: 0.7369 MB / 421.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.2577, allocations: 174.2 kB / 421.2 MB, free: 6.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.259, allocations: 1.004 MB / 422.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.259, allocations: 33.7 kB / 422.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.2592, allocations: 161.9 kB / 422.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.459e-05/0.2593, allocations: 63.52 kB / 422.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002753/0.2595, allocations: 165.3 kB / 422.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2597, allocations: 342.8 kB / 423 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.26, allocations: 123.9 kB / 423.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.2603, allocations: 160.2 kB / 423.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006311/0.261, allocations: 477.7 kB / 423.7 MB, free: 3.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.261, allocations: 3.938 kB / 423.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009545/0.2619, allocations: 0.5861 MB / 424.3 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.804e-05/0.262, allocations: 130.8 kB / 424.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.262, allocations: 0 / 424.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2621, allocations: 4 kB / 424.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.378e-05/0.2622, allocations: 23.92 kB / 424.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2622, allocations: 0 / 424.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.2624, allocations: 19.94 kB / 424.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.2625, allocations: 115.9 kB / 424.6 MB, free: 2.574 MB / 334.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.0005461/0.2631, allocations: 0.5375 MB / 425.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.2632, allocations: 79.53 kB / 425.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.2634, allocations: 126.4 kB / 425.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2634, allocations: 3.984 kB / 425.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2634, allocations: 7.938 kB / 425.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006348/0.2641, allocations: 0.4963 MB / 425.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.2642, allocations: 24 kB / 425.9 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.2644, allocations: 23.92 kB / 425.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.2645, allocations: 47.95 kB / 426 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001186/0.2657, allocations: 0.919 MB / 426.9 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001135/0.2669, allocations: 0.8515 MB / 427.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000378/0.2673, allocations: 288.2 kB / 428 MB, free: 15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009642/0.2682, allocations: 0.7367 MB / 428.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Backend: time 6.92e-07/0.2683, allocations: 0 / 428.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.2695, allocations: 0.6053 MB / 429.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of SimCode: time 0.002721/0.2722, allocations: 2.037 MB / 431.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01255/0.2848, allocations: 7.978 MB / 439.4 MB, free: 3.508 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches