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.001239/0.001239, allocations: 111.1 kB / 17.74 MB, free: 5.332 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.001068/0.001068, allocations: 188.2 kB / 18.67 MB, free: 4.406 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.279/1.279, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2309, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00285/0.2337, allocations: 1.6 MB / 403 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004335/0.2342, allocations: 179.3 kB / 403.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.2343, allocations: 0 / 403.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.052e-05/0.2344, allocations: 7.875 kB / 403.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.2345, allocations: 11.92 kB / 403.2 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2348, allocations: 47.89 kB / 403.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.2349, allocations: 67.78 kB / 403.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.235, allocations: 28.2 kB / 403.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.983e-05/0.2351, allocations: 23.92 kB / 403.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.2351, allocations: 35.78 kB / 403.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.2351, allocations: 11.94 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.413e-05/0.2352, allocations: 8 kB / 403.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.2352, allocations: 19.92 kB / 403.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.2353, allocations: 35.8 kB / 403.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.2354, allocations: 71.66 kB / 403.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2354, allocations: 0 / 403.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2354, allocations: 0 / 403.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2354, allocations: 0 / 403.5 MB, free: 6.734 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.0004544/0.2359, allocations: 386.8 kB / 403.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2359, allocations: 15.89 kB / 403.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.236, allocations: 20.78 kB / 403.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.2362, allocations: 200.1 kB / 404.1 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.2362, allocations: 4.375 kB / 404.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.2362, allocations: 12.36 kB / 404.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.2366, allocations: 194.2 kB / 404.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.2366, allocations: 192 / 404.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.2366, allocations: 7.938 kB / 404.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2367, allocations: 0 / 404.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.2368, allocations: 39.92 kB / 404.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.2371, allocations: 369.8 kB / 404.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.2373, allocations: 119.8 kB / 404.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2374, allocations: 62.69 kB / 404.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.2375, allocations: 3.984 kB / 404.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.2375, allocations: 46.5 kB / 405 MB, free: 5.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.2375, allocations: 0 / 405 MB, free: 5.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003255/0.2378, allocations: 121.8 kB / 405.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.2379, allocations: 114.8 kB / 405.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.238, allocations: 148.2 kB / 405.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.2381, allocations: 29.95 kB / 405.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/0.2381, allocations: 84.42 kB / 405.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.2381, allocations: 15.89 kB / 405.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.2382, allocations: 25.72 kB / 405.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2383, allocations: 322.8 kB / 405.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.493e-05/0.2383, allocations: 15.98 kB / 405.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.697e-05/0.2384, allocations: 85.38 kB / 405.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.2386, allocations: 109.2 kB / 406 MB, free: 3.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2386, allocations: 4 kB / 406 MB, free: 3.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001927/0.2388, allocations: 113.4 kB / 406.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2388, allocations: 8 kB / 406.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2388, allocations: 0 / 406.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.2388, allocations: 7.938 kB / 406.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.253e-05/0.2389, allocations: 7.984 kB / 406.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.2389, allocations: 4.344 kB / 406.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.59e-05/0.2389, allocations: 15.94 kB / 406.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.239, allocations: 4 kB / 406.2 MB, free: 3.727 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 0.0001051/0.2391, allocations: 137.7 kB / 406.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.2392, allocations: 85.44 kB / 406.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.2393, allocations: 20.7 kB / 406.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2393, allocations: 0 / 406.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2393, allocations: 0 / 406.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.2393, allocations: 4 kB / 406.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.2395, allocations: 189.6 kB / 406.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2396, allocations: 0 / 406.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-05/0.2396, allocations: 4 kB / 406.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2396, allocations: 0 / 406.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2396, allocations: 8 kB / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2396, allocations: 0 / 406.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2396, allocations: 3.938 kB / 406.6 MB, free: 3.215 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.0003434/0.24, allocations: 344.4 kB / 407 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.203e-05/0.24, allocations: 100.9 kB / 407.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.2401, allocations: 8 kB / 407.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.464e-05/0.2402, allocations: 0 / 407.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.2402, allocations: 8 kB / 407.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2402, allocations: 11.94 kB / 407.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.341e-05/0.2403, allocations: 103.2 kB / 407.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2403, allocations: 4 kB / 407.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.2406, allocations: 15.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.132e-05/0.2407, allocations: 114.7 kB / 407.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.2409, allocations: 72.22 kB / 407.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2409, allocations: 0 / 407.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.96e-05/0.2409, allocations: 4 kB / 407.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004505/0.2414, allocations: 66.53 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.0003795/0.2418, allocations: 229.4 kB / 407.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.242, allocations: 0.7045 MB / 408.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.2421, allocations: 19.42 kB / 408.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2421, allocations: 0 / 408.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of Templates: time 0.002259/0.2443, allocations: 0.9851 MB / 409.4 MB, free: 352 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