Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008825/0.0008826, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.739/1.739, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008509/0.0008508, allocations: 87.62 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.901e-05, allocations: 7.984 kB / 337.1 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1194, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.5269, allocations: 76.43 MB / 464 MB, free: 2.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5272, allocations: 75.95 kB / 464.1 MB, free: 2.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003565/0.5308, allocations: 1.44 MB / 465.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5308, allocations: 7.938 kB / 465.5 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.5308, allocations: 0 / 465.5 MB, free: 0.7422 MB / 330.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.0003835/0.5312, allocations: 359.2 kB / 465.9 MB, free: 356 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.5313, allocations: 8.031 kB / 465.9 MB, free: 348 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.5313, allocations: 19.77 kB / 465.9 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.5315, allocations: 194.8 kB / 466.1 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.5316, allocations: 4 kB / 466.1 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.5316, allocations: 4 kB / 466.1 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001178/0.5317, allocations: 36 kB / 466.1 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.5321, allocations: 155.3 kB / 466.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.5321, allocations: 0 / 466.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.5321, allocations: 3.953 kB / 466.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.5321, allocations: 7.938 kB / 466.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.5325, allocations: 342.5 kB / 466.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.5327, allocations: 107.9 kB / 466.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.94e-05/0.5328, allocations: 46.64 kB / 466.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.5328, allocations: 4 kB / 466.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.5328, allocations: 38.5 kB / 466.8 MB, free: 15.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.774e-06/0.5328, allocations: 0 / 466.8 MB, free: 15.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002165/0.5331, allocations: 94.22 kB / 466.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.5331, allocations: 110.9 kB / 467 MB, free: 15.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.5333, allocations: 130.5 kB / 467.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.5333, allocations: 25.7 kB / 467.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.275e-05/0.5333, allocations: 88.41 kB / 467.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.075e-05/0.5334, allocations: 8 kB / 467.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.5334, allocations: 3.938 kB / 467.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.5335, allocations: 322.8 kB / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.64e-05/0.5335, allocations: 12 kB / 467.6 MB, free: 14.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-05/0.5336, allocations: 77.39 kB / 467.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.71e-05/0.5336, allocations: 23.92 kB / 467.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5336, allocations: 4 kB / 467.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001351/0.5338, allocations: 93.55 kB / 467.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.5338, allocations: 11.98 kB / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.5338, allocations: 0 / 467.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.5338, allocations: 4 kB / 467.8 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.483e-05/0.5339, allocations: 15.89 kB / 467.8 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.5339, allocations: 4 kB / 467.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.134e-05/0.5339, allocations: 4 kB / 467.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.534, allocations: 4 kB / 467.8 MB, free: 14.12 MB / 346.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 () * 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 6.709e-05/0.534, allocations: 114.9 kB / 467.9 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001503/0.5342, allocations: 93.52 kB / 468 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.5342, allocations: 7.906 kB / 468 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.5343, allocations: 20.58 kB / 468.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.5343, allocations: 0 / 468.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.5343, allocations: 4 kB / 468.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5343, allocations: 0 / 468.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.5345, allocations: 154.2 kB / 468.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5345, allocations: 4 kB / 468.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.951e-05/0.5346, allocations: 8 kB / 468.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.5346, allocations: 4 kB / 468.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.5346, allocations: 1.812 kB / 468.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.5346, allocations: 0 / 468.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5346, allocations: 7.953 kB / 468.2 MB, free: 13.67 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358: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.0003298/0.5349, allocations: 347.7 kB / 468.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.88e-05/0.535, allocations: 93 kB / 468.7 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.535, allocations: 11.94 kB / 468.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.742e-05/0.5351, allocations: 96 / 468.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.362e-05/0.5352, allocations: 7.938 kB / 468.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.5352, allocations: 4 kB / 468.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.091e-05/0.5353, allocations: 105 kB / 468.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5353, allocations: 0 / 468.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.5355, allocations: 8 kB / 468.8 MB, free: 13.06 MB / 346.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 () * 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358:89:writable] Error: Internal error Transformation module sort components failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.0005099/0.5361, allocations: 0.6542 MB / 469.5 MB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.5362, allocations: 52.44 kB / 469.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5362, allocations: 128 / 469.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.473e-05/0.5362, allocations: 15.92 kB / 469.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.5365, allocations: 43.97 kB / 469.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004368/0.537, allocations: 143.5 kB / 469.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.5373, allocations: 0.7002 MB / 470.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.073e-05/0.5373, allocations: 8.562 kB / 470.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.5373, allocations: 23.42 kB / 470.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5374, allocations: 0 / 470.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.5583, allocations: 1.399 MB / 471.8 MB, free: 9.957 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/0.5586, allocations: 145.6 kB / 472 MB, free: 9.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.462/2.02, allocations: 1.406 kB / 472 MB, free: 9.77 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat