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: 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/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 200.6 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 86.59 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.654e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1354, allocations: 51.47 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.5141, allocations: 77.23 MB / 472.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.5144, allocations: 73.61 kB / 472.5 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00329/0.5177, allocations: 1.448 MB / 473.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.287e-06/0.5177, allocations: 0.5625 kB / 473.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.5177, allocations: 4 kB / 473.9 MB, free: 13.32 MB / 346.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.0002673/0.518, allocations: 345.8 kB / 474.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.518, allocations: 12.03 kB / 474.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.5181, allocations: 17.08 kB / 474.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.5182, allocations: 188.9 kB / 474.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.5183, allocations: 6.703 kB / 474.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.5183, allocations: 4 kB / 474.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001056/0.5184, allocations: 35.91 kB / 474.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.5187, allocations: 167.7 kB / 474.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.5187, allocations: 4 kB / 474.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.5187, allocations: 0 / 474.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.5187, allocations: 0.6562 kB / 474.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003118/0.519, allocations: 351.4 kB / 475 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.5191, allocations: 100.3 kB / 475.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.008e-05/0.5192, allocations: 58.25 kB / 475.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.5193, allocations: 1.172 kB / 475.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.5193, allocations: 39.2 kB / 475.2 MB, free: 12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.5193, allocations: 0 / 475.2 MB, free: 12 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002181/0.5195, allocations: 87.27 kB / 475.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.5196, allocations: 111.4 kB / 475.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/0.5197, allocations: 127.6 kB / 475.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.5197, allocations: 25.7 kB / 475.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.013e-05/0.5197, allocations: 93.23 kB / 475.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.131e-05/0.5197, allocations: 7.859 kB / 475.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.5197, allocations: 0 / 475.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.5198, allocations: 320.5 kB / 476 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.959e-05/0.5198, allocations: 7.438 kB / 476 MB, free: 11.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.27e-05/0.5199, allocations: 81.98 kB / 476.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.805e-05/0.5199, allocations: 25.72 kB / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5199, allocations: 0 / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001195/0.5201, allocations: 101.8 kB / 476.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.5201, allocations: 8.797 kB / 476.2 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.5201, allocations: 4 kB / 476.2 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.5201, allocations: 6.719 kB / 476.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.426e-05/0.5201, allocations: 9.531 kB / 476.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.5202, allocations: 0.5625 kB / 476.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.344e-05/0.5202, allocations: 4.703 kB / 476.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.5202, allocations: 8 kB / 476.2 MB, free: 10.97 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.073e-05/0.5203, allocations: 114.6 kB / 476.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.5204, allocations: 80.66 kB / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.125e-05/0.5205, allocations: 13.89 kB / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5205, allocations: 0.6562 kB / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5205, allocations: 3.5 kB / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.5205, allocations: 4.703 kB / 476.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.5207, allocations: 150.6 kB / 476.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5207, allocations: 4 kB / 476.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-05/0.5207, allocations: 9.406 kB / 476.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.5207, allocations: 4 kB / 476.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.5207, allocations: 7.953 kB / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.5207, allocations: 0 / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5207, allocations: 0 / 476.6 MB, free: 10.6 MB / 346.7 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/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.0002717/0.521, allocations: 354.6 kB / 477 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.087e-05/0.5211, allocations: 97.22 kB / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.5211, allocations: 9.578 kB / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.811e-05/0.5212, allocations: 0 / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.5212, allocations: 5.641 kB / 477.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.5212, allocations: 0 / 477.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.249e-05/0.5213, allocations: 103.9 kB / 477.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5213, allocations: 4 kB / 477.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002642/0.5216, allocations: 8 kB / 477.2 MB, free: 10.05 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 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001001/0.5217, allocations: 100.2 kB / 477.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.5218, allocations: 55.59 kB / 477.3 MB, free: 9.902 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5218, allocations: 1.875 kB / 477.3 MB, free: 9.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.542e-05/0.5218, allocations: 7.75 kB / 477.3 MB, free: 9.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.5221, allocations: 48.06 kB / 477.4 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.5224, allocations: 143.5 kB / 477.5 MB, free: 9.727 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.5226, allocations: 0.7098 MB / 478.2 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.861e-05/0.5226, allocations: 1.844 kB / 478.2 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.5226, allocations: 16 kB / 478.3 MB, free: 8.988 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5227, allocations: 4 kB / 478.3 MB, free: 8.984 MB / 346.7 MB Notification: Performance of Templates: time 0.002533/0.5252, allocations: 0.6514 MB / 478.9 MB, free: 8.625 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches