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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009747/0.0009748, allocations: 198.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 95.66 kB / 297.2 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002064, allocations: 8 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1765, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08121/0.2577, allocations: 77.95 MB / 487.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.258, allocations: 75.95 kB / 487.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003244/0.2613, allocations: 1.461 MB / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2613, allocations: 0 / 489 MB, free: 11.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.2613, allocations: 4 kB / 489 MB, free: 11.11 MB / 362.7 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.0003349/0.2616, allocations: 378.3 kB / 489.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2617, allocations: 8.031 kB / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.2617, allocations: 42.55 kB / 489.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.2618, allocations: 7.906 kB / 489.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.2619, allocations: 190.9 kB / 489.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.2619, allocations: 4 kB / 489.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.262, allocations: 11.95 kB / 489.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.2623, allocations: 194.2 kB / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2623, allocations: 0 / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.2623, allocations: 0 / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2623, allocations: 4 kB / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.561e-05/0.2624, allocations: 39.92 kB / 489.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003573/0.2628, allocations: 381.8 kB / 490.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.263, allocations: 115.9 kB / 490.3 MB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.263, allocations: 0 / 490.3 MB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.263, allocations: 34.55 kB / 490.4 MB, free: 9.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.263, allocations: 7.938 kB / 490.4 MB, free: 9.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002958/0.2633, allocations: 125.5 kB / 490.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.2634, allocations: 115.1 kB / 490.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.2635, allocations: 135.7 kB / 490.7 MB, free: 9.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2635, allocations: 29.7 kB / 490.8 MB, free: 9.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.828e-05/0.2636, allocations: 88.36 kB / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.2636, allocations: 4 kB / 490.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-06/0.2636, allocations: 0 / 490.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.2637, allocations: 322.8 kB / 491.2 MB, free: 8.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.268e-05/0.2638, allocations: 19.98 kB / 491.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.141e-05/0.2638, allocations: 81.44 kB / 491.3 MB, free: 8.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.394e-05/0.2639, allocations: 27.89 kB / 491.3 MB, free: 8.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2639, allocations: 4 kB / 491.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001715/0.2641, allocations: 113.4 kB / 491.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.2641, allocations: 8 kB / 491.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2641, allocations: 4 kB / 491.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2641, allocations: 4 kB / 491.4 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.106e-05/0.2642, allocations: 11.92 kB / 491.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2642, allocations: 0 / 491.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.252e-05/0.2642, allocations: 8.344 kB / 491.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.2643, allocations: 12 kB / 491.5 MB, free: 8.324 MB / 362.7 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 (sample1.u,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.289e-05/0.2643, allocations: 135.5 kB / 491.6 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.2645, allocations: 81.91 kB / 491.7 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.98e-05/0.2645, allocations: 16.72 kB / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2645, allocations: 0 / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2646, allocations: 96 / 491.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2646, allocations: 11.92 kB / 491.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.2648, allocations: 189.6 kB / 491.9 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2648, allocations: 7.953 kB / 491.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.2648, allocations: 4 kB / 491.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2648, allocations: 0 / 491.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.2648, allocations: 8 kB / 491.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2649, allocations: 0 / 491.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2649, allocations: 3.984 kB / 491.9 MB, free: 7.809 MB / 362.7 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:7906:5-7906: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.0003501/0.2652, allocations: 363.8 kB / 492.3 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.472e-05/0.2653, allocations: 100.9 kB / 492.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.2653, allocations: 0 / 492.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.265e-05/0.2654, allocations: 4 kB / 492.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.2654, allocations: 11.98 kB / 492.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.2655, allocations: 4 kB / 492.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.448e-05/0.2655, allocations: 105.6 kB / 492.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2655, allocations: 0 / 492.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000261/0.2658, allocations: 8 kB / 492.5 MB, free: 7.176 MB / 362.7 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 (sample1.u,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 [/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:7906:5-7906:89:writable] Error: Internal error Transformation module sort components failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1765:3-1765:84:writable] Error: Internal error function createFMIModelDerivatives failed Notification: Performance of Backend phase and start with SimCode phase: time 0.0004881/0.2663, allocations: 0.6726 MB / 493.2 MB, free: 6.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.2665, allocations: 75.84 kB / 493.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2665, allocations: 0 / 493.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.312e-05/0.2665, allocations: 11.94 kB / 493.3 MB, free: 6.387 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2668, allocations: 48.02 kB / 493.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005279/0.2673, allocations: 235.8 kB / 493.5 MB, free: 6.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.2676, allocations: 0.7046 MB / 494.2 MB, free: 5.348 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.471e-05/0.2677, allocations: 12.42 kB / 494.3 MB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.2677, allocations: 19.44 kB / 494.3 MB, free: 5.316 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2677, allocations: 3.938 kB / 494.3 MB, free: 5.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01088/0.2786, allocations: 1.691 MB / 496 MB, free: 3.777 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.2788, allocations: 183.5 kB / 496.1 MB, free: 3.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.435/1.714, allocations: 0 / 496.1 MB, free: 3.543 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat