Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.062/1.062, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.763e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002758/0.002786, allocations: 1.672 MB / 274.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004719/0.003257, allocations: 179.3 kB / 274.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.003345, allocations: 4 kB / 274.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.895e-05/0.003414, allocations: 11.86 kB / 274.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.003562, allocations: 11.81 kB / 274.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.003817, allocations: 39.89 kB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.003935, allocations: 63.83 kB / 274.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.004053, allocations: 32.14 kB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.493e-05/0.004118, allocations: 35.91 kB / 275 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.062e-05/0.004159, allocations: 19.91 kB / 275 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.004183, allocations: 8 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.004196, allocations: 4 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.036e-05/0.004246, allocations: 19.92 kB / 275.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.407e-05/0.00428, allocations: 27.91 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.004405, allocations: 51.75 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.004407, allocations: 4 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004408, allocations: 0 / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.004413, allocations: 3.938 kB / 275.2 MB, free: 15.32 MB / 266.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.0004336/0.004847, allocations: 412.2 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.004887, allocations: 8.031 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.004934, allocations: 16.89 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.005222, allocations: 152.4 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.00525, allocations: 8.375 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.005266, allocations: 4.375 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.005627, allocations: 183.1 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.005639, allocations: 192 / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.005652, allocations: 4.375 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.005662, allocations: 4.375 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.328e-05/0.005715, allocations: 31.86 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.006096, allocations: 422.2 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.006247, allocations: 117.3 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.715e-05/0.006314, allocations: 55.17 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.006341, allocations: 4 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.006367, allocations: 37.39 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.006368, allocations: 0 / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002541/0.006622, allocations: 109.7 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.006686, allocations: 118.8 kB / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.006815, allocations: 204.5 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.006828, allocations: 29.7 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.884e-05/0.006897, allocations: 131.2 kB / 277.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.788e-06/0.006907, allocations: 3.938 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.567e-05/0.006953, allocations: 35.31 kB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002785/0.007231, allocations: 492.1 kB / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.556e-05/0.007247, allocations: 4 kB / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.116e-05/0.007268, allocations: 19.38 kB / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.788e-05/0.007306, allocations: 27.42 kB / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.007309, allocations: 8 kB / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.927e-05/0.007378, allocations: 41.64 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.007395, allocations: 7.938 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.007401, allocations: 0 / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.007419, allocations: 4 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-05/0.00743, allocations: 0 / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.007436, allocations: 0 / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.873e-05/0.007475, allocations: 7.984 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.007483, allocations: 8.047 kB / 277.8 MB, free: 12.37 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.985e-05/0.007562, allocations: 160.5 kB / 278 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.007676, allocations: 78.02 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/0.007718, allocations: 20.72 kB / 278.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.007722, allocations: 4 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.007725, allocations: 3.938 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.00773, allocations: 3.984 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.007922, allocations: 132.6 kB / 278.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.007924, allocations: 0 / 278.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.247e-05/0.007937, allocations: 4 kB / 278.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.007939, allocations: 4 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.007949, allocations: 7.984 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.007953, allocations: 3.938 kB / 278.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.007954, allocations: 0 / 278.2 MB, free: 11.9 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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:347:7-347: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:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020: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.0003024/0.008256, allocations: 431.6 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.008295, allocations: 15.88 kB / 278.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.00831, allocations: 8 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.547e-05/0.008406, allocations: 7.938 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.008437, allocations: 4 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.008445, allocations: 8 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.769e-05/0.008503, allocations: 139.2 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.008503, allocations: 0 / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002583/0.008761, allocations: 7.953 kB / 278.8 MB, free: 11.27 MB / 266.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 (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.772e-05/0.008859, allocations: 111.2 kB / 278.9 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.008966, allocations: 31.67 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.008968, allocations: 4.125 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.685e-05/0.008985, allocations: 15.62 kB / 279 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.009416, allocations: 42.83 kB / 279 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.009796, allocations: 219 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.48e-05/0.009861, allocations: 71.25 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.688e-05/0.009877, allocations: 0 / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.009911, allocations: 12.5 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.009911, allocations: 0 / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of Templates: time 0.002985/0.0129, allocations: 0.7687 MB / 280.1 MB, free: 9.945 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0719482861459255]