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.001077/0.001082, allocations: 122.2 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.001225/0.001225, allocations: 206.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2605, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003199/0.2638, allocations: 2.103 MB / 412 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.266, allocations: 1.045 MB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.689e-05/0.2661, allocations: 0 / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.2663, allocations: 35.66 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.2664, allocations: 51.53 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004067/0.2668, allocations: 127.8 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.2673, allocations: 415 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.2675, allocations: 107.1 kB / 413.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000917/0.2685, allocations: 0.9631 MB / 414.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.2687, allocations: 203.2 kB / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.188e-05/0.2688, allocations: 39.94 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.238e-05/0.2689, allocations: 36 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.2691, allocations: 159.4 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.2693, allocations: 286.1 kB / 415.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008481/0.2702, allocations: 0.9732 MB / 416.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2702, allocations: 0 / 416.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2702, allocations: 4 kB / 416.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.2702, allocations: 0 / 416.5 MB, free: 11.04 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.001291/0.2715, allocations: 1.12 MB / 417.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.2716, allocations: 8.031 kB / 417.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.2717, allocations: 91.84 kB / 417.7 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.2723, allocations: 424.1 kB / 418.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/0.2723, allocations: 28.34 kB / 418.1 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.2724, allocations: 20.38 kB / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.273, allocations: 301.5 kB / 418.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.273, allocations: 0 / 418.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.273, allocations: 8 kB / 418.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.2731, allocations: 4 kB / 418.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.2735, allocations: 207.9 kB / 418.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.2748, allocations: 0.8785 MB / 419.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004497/0.2753, allocations: 226.4 kB / 419.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.2756, allocations: 156.8 kB / 419.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.2756, allocations: 3.938 kB / 419.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000574/0.2762, allocations: 381.9 kB / 420.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.2762, allocations: 0 / 420.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00144/0.2776, allocations: 0.7407 MB / 421 MB, free: 6.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.2777, allocations: 174.2 kB / 421.2 MB, free: 6.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.279, allocations: 1.004 MB / 422.2 MB, free: 5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.2791, allocations: 33.7 kB / 422.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2792, allocations: 161.8 kB / 422.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/0.2793, allocations: 59.28 kB / 422.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.2795, allocations: 169 kB / 422.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.2796, allocations: 338.8 kB / 422.9 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.28, allocations: 120 kB / 423.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.2802, allocations: 164.2 kB / 423.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006061/0.2809, allocations: 481.7 kB / 423.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2809, allocations: 4 kB / 423.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009449/0.2818, allocations: 0.578 MB / 424.3 MB, free: 2.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.2819, allocations: 134.9 kB / 424.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.282, allocations: 7.938 kB / 424.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.282, allocations: 0 / 424.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.233e-05/0.2821, allocations: 12.06 kB / 424.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.2821, allocations: 4 kB / 424.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.2823, allocations: 23.97 kB / 424.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.2825, allocations: 119.8 kB / 424.6 MB, free: 2.465 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.0005859/0.2831, allocations: 0.5375 MB / 425.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.972e-05/0.2832, allocations: 87.06 kB / 425.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001841/0.2834, allocations: 126.4 kB / 425.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2834, allocations: 0 / 425.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2834, allocations: 0 / 425.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007213/0.2841, allocations: 499.7 kB / 425.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.713e-05/0.2842, allocations: 20 kB / 425.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.2844, allocations: 19.92 kB / 425.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2845, allocations: 55.94 kB / 425.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001063/0.2856, allocations: 0.9189 MB / 426.8 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001167/0.2868, allocations: 0.8549 MB / 427.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003772/0.2872, allocations: 287.9 kB / 427.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008848/0.2881, allocations: 0.729 MB / 428.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of Backend: time 6.21e-07/0.2881, allocations: 0 / 428.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.2891, allocations: 0.612 MB / 429.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of SimCode: time 0.002607/0.2917, allocations: 2.016 MB / 431.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Templates: time 0.01199/0.3037, allocations: 7.984 MB / 439.3 MB, free: 3.426 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