Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.00111/0.001109, allocations: 113.3 kB / 18.4 MB, free: 4.562 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.001105/0.001105, allocations: 185.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07325/0.07444, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003119/0.07759, allocations: 2.119 MB / 377.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.07982, allocations: 1.057 MB / 379 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.07996, allocations: 4 kB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.08018, allocations: 39.64 kB / 379 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.0803, allocations: 51.52 kB / 379.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.08073, allocations: 127.8 kB / 379.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004997/0.08124, allocations: 411.1 kB / 379.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.08148, allocations: 107 kB / 379.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1534/0.2349, allocations: 0.9586 MB / 380.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.2353, allocations: 196.8 kB / 380.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.2355, allocations: 38.59 kB / 380.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.893e-05/0.2356, allocations: 34.34 kB / 380.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.2358, allocations: 160.2 kB / 381.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.2361, allocations: 290.5 kB / 381.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000961/0.237, allocations: 0.9772 MB / 382.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.237, allocations: 0 / 382.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2371, allocations: 1.375 kB / 382.4 MB, free: 9.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.224e-05/0.2371, allocations: 0 / 382.4 MB, free: 9.984 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.001727/0.2388, allocations: 1.111 MB / 383.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2389, allocations: 17.58 kB / 383.5 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.2391, allocations: 83.53 kB / 383.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.2396, allocations: 433.7 kB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.2397, allocations: 15.81 kB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.2398, allocations: 18.97 kB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.2404, allocations: 299.3 kB / 384.3 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2405, allocations: 4.969 kB / 384.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.653e-05/0.2405, allocations: 10.38 kB / 384.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.2405, allocations: 6.641 kB / 384.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.241, allocations: 216.6 kB / 384.5 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.2425, allocations: 0.8858 MB / 385.4 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.243, allocations: 215.6 kB / 385.6 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.2433, allocations: 157.3 kB / 385.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2433, allocations: 1.438 kB / 385.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005749/0.2439, allocations: 386.3 kB / 386.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.2439, allocations: 1.812 kB / 386.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00135/0.2453, allocations: 0.741 MB / 386.9 MB, free: 7.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.2454, allocations: 173.8 kB / 387.1 MB, free: 7.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.2467, allocations: 0.9972 MB / 388.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.2467, allocations: 39.73 kB / 388.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.2468, allocations: 160.1 kB / 388.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.2469, allocations: 53.08 kB / 388.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.2471, allocations: 161.8 kB / 388.5 MB, free: 6.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.538e-05/0.2472, allocations: 340.8 kB / 388.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.2475, allocations: 122.2 kB / 388.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.2477, allocations: 162.1 kB / 389.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005552/0.2483, allocations: 480.8 kB / 389.6 MB, free: 6.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2483, allocations: 0 / 389.6 MB, free: 6.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009157/0.2492, allocations: 0.5866 MB / 390.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.365e-05/0.2493, allocations: 133.5 kB / 390.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2493, allocations: 1.922 kB / 390.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2493, allocations: 5.469 kB / 390.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.098e-05/0.2494, allocations: 20.39 kB / 390.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2494, allocations: 2.812 kB / 390.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.2497, allocations: 19.94 kB / 390.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/0.2498, allocations: 118.3 kB / 390.4 MB, free: 5.676 MB / 318.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.0005237/0.2504, allocations: 0.531 MB / 391 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.577e-05/0.2505, allocations: 82.83 kB / 391.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.2506, allocations: 132.8 kB / 391.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2507, allocations: 1.188 kB / 391.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2507, allocations: 0 / 391.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2507, allocations: 1.188 kB / 391.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007541/0.2514, allocations: 0.6284 MB / 391.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2514, allocations: 1.312 kB / 391.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.416e-05/0.2515, allocations: 9.031 kB / 391.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2515, allocations: 0 / 391.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.2516, allocations: 34.03 kB / 391.9 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2516, allocations: 5.312 kB / 391.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2516, allocations: 0 / 391.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.2526, allocations: 0.7019 MB / 392.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006546/0.2533, allocations: 499.1 kB / 393.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.2534, allocations: 21.36 kB / 393.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.2536, allocations: 20.92 kB / 393.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.2538, allocations: 47.5 kB / 393.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.2539, allocations: 122.2 kB / 393.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009008/0.2548, allocations: 0.7284 MB / 394 MB, free: 3.656 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2548, allocations: 0 / 394 MB, free: 3.656 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.2552, allocations: 95.34 kB / 394.1 MB, free: 3.645 MB / 318.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.000133/0.2553, allocations: 137.1 kB / 394.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008445/0.2562, allocations: 0.652 MB / 394.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2562, allocations: 0 / 394.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.2567, allocations: 0.5266 MB / 395.4 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.2576, allocations: 206.5 kB / 395.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.2596, allocations: 1.398 MB / 397 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.2601, allocations: 0.9662 MB / 398 MB, free: 1.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.2604, allocations: 100.4 kB / 398.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2604, allocations: 0 / 398.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of Templates: time 0.007474/0.2679, allocations: 5.439 MB / 403.5 MB, free: 15.41 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches