Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.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.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001668/0.001668, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002007, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.693/2.693, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002523/0.002524, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6593/0.6619, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.006267/0.6682, allocations: 1.597 MB / 411.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009095/0.6692, allocations: 175.4 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.6694, allocations: 0 / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.825e-05/0.6696, allocations: 3.938 kB / 411.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.6698, allocations: 15.86 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.6703, allocations: 47.83 kB / 411.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.6705, allocations: 63.83 kB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.6708, allocations: 36.2 kB / 411.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.913e-05/0.6708, allocations: 19.94 kB / 411.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.671, allocations: 43.7 kB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.687e-05/0.6711, allocations: 4 kB / 411.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.638e-05/0.6711, allocations: 8 kB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.6712, allocations: 23.92 kB / 412 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.6713, allocations: 31.8 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.6716, allocations: 75.66 kB / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.6716, allocations: 0 / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6717, allocations: 0 / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.6717, allocations: 3.984 kB / 412.1 MB, free: 15.44 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009014/0.6726, allocations: 380.3 kB / 412.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.6727, allocations: 12.03 kB / 412.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.767e-05/0.6728, allocations: 8.844 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.6733, allocations: 204 kB / 412.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.6734, allocations: 12.31 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.6734, allocations: 4.375 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.674, allocations: 204.5 kB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.6741, allocations: 4.188 kB / 412.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.6741, allocations: 7.938 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.6741, allocations: 0 / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.6743, allocations: 35.92 kB / 412.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007366/0.675, allocations: 365.9 kB / 413.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.6753, allocations: 123.7 kB / 413.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.6755, allocations: 66.69 kB / 413.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.6756, allocations: 3.984 kB / 413.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/0.6757, allocations: 38.56 kB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.024e-06/0.6757, allocations: 0 / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005175/0.6762, allocations: 129.4 kB / 413.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.6763, allocations: 114.8 kB / 413.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.6766, allocations: 141.8 kB / 413.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.6766, allocations: 25.7 kB / 413.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.6767, allocations: 88.67 kB / 414 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.6768, allocations: 15.89 kB / 414 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.368e-05/0.6769, allocations: 33.7 kB / 414 MB, free: 13.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.6771, allocations: 314.8 kB / 414.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.725e-05/0.6772, allocations: 11.98 kB / 414.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.6774, allocations: 85.81 kB / 414.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.6776, allocations: 109.2 kB / 414.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6776, allocations: 4 kB / 414.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003061/0.678, allocations: 113.4 kB / 414.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.678, allocations: 11.94 kB / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.678, allocations: 4 kB / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.6781, allocations: 0 / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.611e-05/0.6781, allocations: 11.92 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.6782, allocations: 4 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.313e-05/0.6783, allocations: 12.19 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.6783, allocations: 16 kB / 414.7 MB, free: 12.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001992/0.6785, allocations: 129.7 kB / 414.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.6788, allocations: 89.47 kB / 414.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.576e-05/0.6789, allocations: 20.7 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6789, allocations: 0 / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.6789, allocations: 0 / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.6789, allocations: 4 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005367/0.6795, allocations: 185.6 kB / 415.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.6795, allocations: 4 kB / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-05/0.6795, allocations: 4 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.6795, allocations: 0 / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.6796, allocations: 4 kB / 415.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.6796, allocations: 0 / 415.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6796, allocations: 0 / 415.2 MB, free: 11.93 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006325/0.6802, allocations: 348.3 kB / 415.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.6804, allocations: 100.9 kB / 415.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.6804, allocations: 0 / 415.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.6806, allocations: 8 kB / 415.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.6807, allocations: 0 / 415.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.6807, allocations: 7.984 kB / 415.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.6808, allocations: 118.2 kB / 415.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6809, allocations: 0 / 415.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005431/0.6814, allocations: 12 kB / 415.7 MB, free: 11.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0002264/0.6816, allocations: 99.19 kB / 415.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.682, allocations: 72.5 kB / 415.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.682, allocations: 12.06 kB / 415.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.202e-05/0.6821, allocations: 4 kB / 415.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000779/0.6828, allocations: 63.88 kB / 416 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008976/0.6838, allocations: 225.6 kB / 416.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.6844, allocations: 0.7118 MB / 416.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.6845, allocations: 15.56 kB / 416.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6845, allocations: 4 kB / 416.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Templates: time 0.004336/0.6888, allocations: 1.007 MB / 417.9 MB, free: 9.035 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches