Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 114.2 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 51.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2363, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002746/0.2391, allocations: 2.113 MB / 403.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.2409, allocations: 1.006 MB / 404.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7e-05/0.241, allocations: 4 kB / 404.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.2411, allocations: 39.59 kB / 404.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.819e-05/0.2412, allocations: 55.56 kB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.2416, allocations: 126.4 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.242, allocations: 423 kB / 405.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.2421, allocations: 103.1 kB / 405.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008349/0.243, allocations: 0.963 MB / 406.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.2432, allocations: 191.2 kB / 406.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.641e-05/0.2433, allocations: 36 kB / 406.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.458e-05/0.2434, allocations: 40 kB / 406.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.2436, allocations: 163.3 kB / 406.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.2438, allocations: 282.1 kB / 406.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.2446, allocations: 0.977 MB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.2446, allocations: 0 / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2446, allocations: 4 kB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.2446, allocations: 0 / 407.9 MB, free: 2.363 MB / 318.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.00106/0.2457, allocations: 1.116 MB / 409 MB, free: 1.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2457, allocations: 11.89 kB / 409 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.2459, allocations: 87.91 kB / 409.1 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004354/0.2463, allocations: 436.1 kB / 409.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.2463, allocations: 16.38 kB / 409.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.2464, allocations: 20.38 kB / 409.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.247, allocations: 297.7 kB / 409.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.247, allocations: 4 kB / 409.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.247, allocations: 11.98 kB / 409.9 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.247, allocations: 4 kB / 409.9 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004196/0.2475, allocations: 208.4 kB / 410.1 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.2487, allocations: 0.894 MB / 411 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.2491, allocations: 214.5 kB / 411.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.2494, allocations: 160.8 kB / 411.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.2494, allocations: 0 / 411.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005201/0.25, allocations: 394 kB / 411.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.25, allocations: 0 / 411.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001231/0.2512, allocations: 0.7335 MB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.2513, allocations: 178.2 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.2524, allocations: 0.9961 MB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.2525, allocations: 37.7 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.2526, allocations: 161.6 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.621e-05/0.2527, allocations: 55.34 kB / 413.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.2529, allocations: 165.1 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.253, allocations: 338.8 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.2533, allocations: 127.9 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.2535, allocations: 160.2 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.2541, allocations: 481.7 kB / 415.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2541, allocations: 4 kB / 415.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008911/0.255, allocations: 0.5819 MB / 415.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.846e-05/0.2551, allocations: 130.8 kB / 415.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2551, allocations: 4 kB / 415.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.2551, allocations: 0 / 415.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.328e-05/0.2552, allocations: 19.92 kB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2552, allocations: 0 / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.2554, allocations: 23.98 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.2555, allocations: 111.9 kB / 416 MB, free: 9.793 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.0005219/0.2561, allocations: 0.5376 MB / 416.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.945e-05/0.2562, allocations: 75.06 kB / 416.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.2564, allocations: 134.3 kB / 416.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2564, allocations: 3.984 kB / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2564, allocations: 4 kB / 416.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006239/0.257, allocations: 499.7 kB / 417.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.2571, allocations: 20 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.2573, allocations: 23.92 kB / 417.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.2575, allocations: 47.95 kB / 417.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001062/0.2585, allocations: 0.9206 MB / 418.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001043/0.2596, allocations: 0.8547 MB / 419.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003649/0.26, allocations: 284.2 kB / 419.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008616/0.2608, allocations: 0.729 MB / 420.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of Backend: time 3.91e-07/0.2608, allocations: 0 / 420.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009061/0.2618, allocations: 0.5978 MB / 420.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of SimCode: time 0.002196/0.264, allocations: 2.026 MB / 422.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of Templates: time 0.01064/0.2746, allocations: 7.996 MB / 430.7 MB, free: 10.75 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches