Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 192 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007373/0.0007373, allocations: 95.08 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002374, allocations: 8 kB / 356.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001605/0.2219, allocations: 1.308 MB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003637/0.2223, allocations: 159.5 kB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.061e-05/0.2224, allocations: 4 kB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.2225, allocations: 7.875 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.2226, allocations: 3.984 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2229, allocations: 43.78 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.152e-05/0.223, allocations: 59.84 kB / 409.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.2231, allocations: 30.83 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.333e-05/0.2231, allocations: 21.27 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.21e-05/0.2232, allocations: 19.86 kB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.2232, allocations: 4 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.137e-05/0.2232, allocations: 0 / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.751e-05/0.2233, allocations: 17.86 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.928e-05/0.2233, allocations: 49.52 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.952e-05/0.2234, allocations: 47.89 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2234, allocations: 0 / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.2234, allocations: 3.984 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2234, allocations: 4.438 kB / 409.8 MB, free: 25.91 MB / 298.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.0003964/0.2238, allocations: 372.9 kB / 410.2 MB, free: 25.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2239, allocations: 8.781 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.2239, allocations: 12.84 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.2241, allocations: 200.6 kB / 410.4 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.2241, allocations: 8.938 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.2242, allocations: 5.094 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.2245, allocations: 182.4 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2245, allocations: 4.125 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2246, allocations: 7.938 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2246, allocations: 0 / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.725e-05/0.2247, allocations: 43.97 kB / 410.6 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003229/0.225, allocations: 369.8 kB / 411 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.2252, allocations: 119.8 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.024e-05/0.2252, allocations: 58.62 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.077e-05/0.2253, allocations: 4 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.2253, allocations: 34.5 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.2253, allocations: 0 / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003058/0.2257, allocations: 141.4 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.2257, allocations: 110.8 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.2258, allocations: 148.2 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.2258, allocations: 25.7 kB / 411.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.316e-05/0.2259, allocations: 84.42 kB / 411.7 MB, free: 23.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.2259, allocations: 4.25 kB / 411.7 MB, free: 23.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.2259, allocations: 8 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.226, allocations: 322.8 kB / 412 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.028e-05/0.226, allocations: 15.92 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.614e-05/0.2261, allocations: 88.55 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.84e-05/0.2262, allocations: 113.2 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2262, allocations: 0 / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001505/0.2263, allocations: 121.3 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2264, allocations: 4 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2264, allocations: 4 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2264, allocations: 4 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.969e-05/0.2264, allocations: 4 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2264, allocations: 11.92 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.298e-05/0.2265, allocations: 12.19 kB / 412.4 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.2265, allocations: 12 kB / 412.4 MB, free: 22.96 MB / 298.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 (step.y,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 6.775e-05/0.2266, allocations: 121.8 kB / 412.5 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.2267, allocations: 85.53 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.2267, allocations: 20.7 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2268, allocations: 4 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2268, allocations: 0 / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2268, allocations: 0 / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2269, allocations: 186 kB / 412.8 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.227, allocations: 8 kB / 412.8 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.339e-05/0.227, allocations: 0 / 412.8 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.227, allocations: 7.938 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.227, allocations: 4 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.227, allocations: 3.938 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.227, allocations: 4 kB / 412.9 MB, free: 22.45 MB / 298.7 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7938:5-7938: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.0003523/0.2274, allocations: 348.2 kB / 413.2 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.2274, allocations: 100.9 kB / 413.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2275, allocations: 4 kB / 413.3 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.868e-05/0.2275, allocations: 4 kB / 413.3 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.2276, allocations: 7.938 kB / 413.3 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.2276, allocations: 0 / 413.3 MB, free: 21.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.987e-05/0.2277, allocations: 114.1 kB / 413.4 MB, free: 21.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2277, allocations: 0 / 413.4 MB, free: 21.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002673/0.2279, allocations: 16 kB / 413.4 MB, free: 21.84 MB / 298.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 (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 (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.0001/0.228, allocations: 95.25 kB / 413.5 MB, free: 21.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.2282, allocations: 76.34 kB / 413.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2282, allocations: 0 / 413.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.985e-05/0.2282, allocations: 11.94 kB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.2287, allocations: 54.19 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.2291, allocations: 257.1 kB / 413.9 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.2292, allocations: 0.7043 MB / 414.6 MB, free: 20.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.2293, allocations: 15.44 kB / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2293, allocations: 0 / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of Templates: time 0.002163/0.2315, allocations: 0.9703 MB / 415.6 MB, free: 19.59 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches