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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 112.2 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 187.1 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009552/0.0009553, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2373, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002808/0.2401, allocations: 1.591 MB / 403 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004422/0.2406, allocations: 175.3 kB / 403.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.2407, allocations: 4 kB / 403.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.883e-05/0.2407, allocations: 11.88 kB / 403.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.2409, allocations: 3.938 kB / 403.2 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.2411, allocations: 55.88 kB / 403.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.2412, allocations: 59.78 kB / 403.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2414, allocations: 32.2 kB / 403.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.488e-05/0.2414, allocations: 27.92 kB / 403.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.332e-05/0.2415, allocations: 39.77 kB / 403.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.2415, allocations: 4 kB / 403.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.31e-05/0.2415, allocations: 4 kB / 403.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.127e-05/0.2416, allocations: 23.92 kB / 403.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.2416, allocations: 31.8 kB / 403.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.2417, allocations: 75.66 kB / 403.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2417, allocations: 0 / 403.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2417, allocations: 0 / 403.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2418, allocations: 0 / 403.5 MB, free: 6.723 MB / 318.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.0004367/0.2422, allocations: 388.3 kB / 403.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2422, allocations: 11.89 kB / 403.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.2423, allocations: 24.72 kB / 404 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.2425, allocations: 196.1 kB / 404.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2426, allocations: 384 / 404.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.2426, allocations: 12.38 kB / 404.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.2429, allocations: 194.2 kB / 404.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.243, allocations: 192 / 404.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.243, allocations: 7.922 kB / 404.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.243, allocations: 4 kB / 404.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.67e-05/0.2431, allocations: 39.92 kB / 404.4 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.2435, allocations: 365.9 kB / 404.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.2436, allocations: 119.8 kB / 404.9 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.259e-05/0.2437, allocations: 62.62 kB / 404.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.2438, allocations: 4 kB / 404.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.2438, allocations: 38.5 kB / 405 MB, free: 5.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.2438, allocations: 0 / 405 MB, free: 5.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003406/0.2442, allocations: 129.5 kB / 405.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.2442, allocations: 111 kB / 405.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.2444, allocations: 148.2 kB / 405.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.2444, allocations: 29.7 kB / 405.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.2444, allocations: 84.42 kB / 405.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.2445, allocations: 15.89 kB / 405.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.2445, allocations: 25.72 kB / 405.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2446, allocations: 323.2 kB / 405.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.223e-05/0.2447, allocations: 15.98 kB / 405.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.923e-05/0.2448, allocations: 77.44 kB / 405.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.2449, allocations: 113.2 kB / 406 MB, free: 3.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2449, allocations: 3.938 kB / 406 MB, free: 3.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001805/0.2451, allocations: 117.4 kB / 406.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.2451, allocations: 4 kB / 406.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2451, allocations: 4 kB / 406.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2451, allocations: 8.281 kB / 406.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.149e-05/0.2452, allocations: 8 kB / 406.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.2452, allocations: 4 kB / 406.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.453e-05/0.2452, allocations: 15.92 kB / 406.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.2453, allocations: 4 kB / 406.2 MB, free: 3.723 MB / 318.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.881e-05/0.2454, allocations: 136 kB / 406.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2455, allocations: 85.38 kB / 406.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.535e-05/0.2455, allocations: 20.7 kB / 406.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2456, allocations: 8 kB / 406.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2456, allocations: 0 / 406.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2456, allocations: 0 / 406.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.2458, allocations: 189.6 kB / 406.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.2458, allocations: 3.984 kB / 406.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.52e-05/0.2458, allocations: 4 kB / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2458, allocations: 0 / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.2459, allocations: 4 kB / 406.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2459, allocations: 4 kB / 406.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.2459, allocations: 3.938 kB / 406.6 MB, free: 3.207 MB / 318.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.0003409/0.2462, allocations: 340.4 kB / 407 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.2463, allocations: 100.9 kB / 407.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.2463, allocations: 8 kB / 407.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.2464, allocations: 4 kB / 407.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.91e-05/0.2464, allocations: 4 kB / 407.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.2465, allocations: 0 / 407.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.802e-05/0.2465, allocations: 114.2 kB / 407.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2465, allocations: 0 / 407.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2468, allocations: 19.91 kB / 407.2 MB, free: 2.594 MB / 318.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 9.968e-05/0.2469, allocations: 107.8 kB / 407.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.2471, allocations: 75.78 kB / 407.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2471, allocations: 0 / 407.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.2472, allocations: 8 kB / 407.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.2476, allocations: 59.89 kB / 407.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003916/0.248, allocations: 230.2 kB / 407.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.2483, allocations: 0.708 MB / 408.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.2483, allocations: 11.44 kB / 408.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2483, allocations: 0 / 408.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of Templates: time 0.002233/0.2505, allocations: 1.001 MB / 409.4 MB, free: 340 kB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches