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.001356/0.001356, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2949, allocations: 50.55 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002832/0.2978, allocations: 1.597 MB / 411.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000441/0.2983, allocations: 171.4 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.302e-05/0.2984, allocations: 8 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.533e-05/0.2984, allocations: 7.875 kB / 411.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.2986, allocations: 7.922 kB / 411.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.2989, allocations: 55.83 kB / 411.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.299, allocations: 55.83 kB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.2991, allocations: 36.22 kB / 411.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.812e-05/0.2992, allocations: 23.92 kB / 411.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.918e-05/0.2992, allocations: 35.78 kB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.2993, allocations: 4 kB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.346e-05/0.2993, allocations: 4 kB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.2993, allocations: 23.92 kB / 411.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.2994, allocations: 27.8 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.2995, allocations: 83.64 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2995, allocations: 0 / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2995, allocations: 0 / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2995, allocations: 0 / 412.1 MB, free: 15.43 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.000482/0.3, allocations: 388.2 kB / 412.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.3001, allocations: 8.031 kB / 412.4 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.3001, allocations: 16.78 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.3003, allocations: 196.1 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.3004, allocations: 8.359 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.3004, allocations: 16.36 kB / 412.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.3007, allocations: 194.2 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3008, allocations: 192 / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3008, allocations: 3.938 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3008, allocations: 7.938 kB / 412.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.743e-05/0.3009, allocations: 35.98 kB / 412.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.3013, allocations: 373.8 kB / 413.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.3014, allocations: 111.8 kB / 413.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3015, allocations: 70.61 kB / 413.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3016, allocations: 4 kB / 413.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3016, allocations: 34.5 kB / 413.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.3016, allocations: 0 / 413.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003212/0.3019, allocations: 133.7 kB / 413.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.302, allocations: 114.8 kB / 413.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3021, allocations: 140.6 kB / 413.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3022, allocations: 29.7 kB / 413.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.3022, allocations: 88.41 kB / 414 MB, free: 13.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.3022, allocations: 11.91 kB / 414 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.3023, allocations: 29.7 kB / 414 MB, free: 13.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3024, allocations: 319.2 kB / 414.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.425e-05/0.3025, allocations: 19.98 kB / 414.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.25e-05/0.3025, allocations: 73.44 kB / 414.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.3027, allocations: 117.2 kB / 414.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3027, allocations: 3.938 kB / 414.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001805/0.3029, allocations: 117.3 kB / 414.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3029, allocations: 4.344 kB / 414.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3029, allocations: 8 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/0.303, allocations: 4 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.154e-05/0.303, allocations: 7.984 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.303, allocations: 4 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.624e-05/0.3031, allocations: 15.84 kB / 414.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.3031, allocations: 4 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 9.671e-05/0.3032, allocations: 145.1 kB / 414.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.3033, allocations: 81.53 kB / 414.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.3034, allocations: 20.72 kB / 415 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.3034, allocations: 4 kB / 415 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3034, allocations: 0 / 415 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3034, allocations: 0 / 415 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.3037, allocations: 189.6 kB / 415.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3037, allocations: 0 / 415.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.632e-05/0.3037, allocations: 4 kB / 415.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3037, allocations: 0 / 415.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.3037, allocations: 4 kB / 415.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3037, allocations: 7.938 kB / 415.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3037, allocations: 3.984 kB / 415.2 MB, free: 11.91 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.0003564/0.3041, allocations: 332.4 kB / 415.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.026e-05/0.3042, allocations: 100.9 kB / 415.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.3042, allocations: 12 kB / 415.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.3043, allocations: 0 / 415.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.3043, allocations: 7.984 kB / 415.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-06/0.3044, allocations: 7.938 kB / 415.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.867e-05/0.3044, allocations: 111.1 kB / 415.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3044, allocations: 0 / 415.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.3047, allocations: 16 kB / 415.7 MB, free: 11.3 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.0001136/0.3049, allocations: 107.3 kB / 415.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001805/0.305, allocations: 67.8 kB / 415.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3051, allocations: 0 / 415.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.093e-05/0.3051, allocations: 7.984 kB / 415.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.3055, allocations: 69.75 kB / 416 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.3059, allocations: 229.5 kB / 416.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.3062, allocations: 0.7041 MB / 416.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.932e-05/0.3062, allocations: 15.44 kB / 416.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3062, allocations: 0 / 416.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Templates: time 0.002449/0.3087, allocations: 1.001 MB / 417.9 MB, free: 9.031 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