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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009795/0.0009796, allocations: 97.25 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 204.5 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002568, allocations: 8 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.133, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001966/0.135, allocations: 1.305 MB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000393/0.1354, allocations: 171.5 kB / 359.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.605e-05/0.1355, allocations: 4 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.629e-05/0.1356, allocations: 7.922 kB / 359.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.1357, allocations: 8 kB / 359.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.136, allocations: 43.83 kB / 359.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.475e-05/0.1361, allocations: 31.97 kB / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1362, allocations: 36.3 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.921e-05/0.1363, allocations: 19.88 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.533e-05/0.1363, allocations: 27.84 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.1363, allocations: 4 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.255e-05/0.1364, allocations: 0 / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.1364, allocations: 8 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.958e-05/0.1364, allocations: 37.64 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.402e-05/0.1365, allocations: 47.89 kB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.1365, allocations: 0 / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1365, allocations: 0 / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1365, allocations: 4 kB / 359.8 MB, free: 12.16 MB / 302.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.0004612/0.137, allocations: 381.7 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1371, allocations: 12.03 kB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.1371, allocations: 7.906 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.1373, allocations: 198.9 kB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.1374, allocations: 0 / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.1374, allocations: 15.95 kB / 360.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003729/0.1378, allocations: 189.3 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1378, allocations: 3.938 kB / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1378, allocations: 3.984 kB / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1378, allocations: 0 / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.1379, allocations: 43.97 kB / 360.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.1384, allocations: 369.8 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.1386, allocations: 111.8 kB / 361.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.1386, allocations: 4.125 kB / 361.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.1386, allocations: 38.56 kB / 361.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.1386, allocations: 0 / 361.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003515/0.139, allocations: 133.4 kB / 361.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.1391, allocations: 119.4 kB / 361.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1392, allocations: 136.5 kB / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1392, allocations: 29.7 kB / 361.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.571e-05/0.1393, allocations: 96.34 kB / 361.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.1393, allocations: 7.906 kB / 361.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.1393, allocations: 4 kB / 361.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1395, allocations: 318.8 kB / 362 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/0.1395, allocations: 15.94 kB / 362 MB, free: 9.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.522e-05/0.1396, allocations: 89.44 kB / 362.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.121e-05/0.1397, allocations: 31.92 kB / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1397, allocations: 0 / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001729/0.1399, allocations: 117.5 kB / 362.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1399, allocations: 4 kB / 362.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.1399, allocations: 7.938 kB / 362.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1399, allocations: 4 kB / 362.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.019e-05/0.1399, allocations: 8 kB / 362.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.14, allocations: 7.984 kB / 362.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.394e-05/0.14, allocations: 11.94 kB / 362.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.14, allocations: 4 kB / 362.3 MB, free: 9.387 MB / 302.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.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 0.0001044/0.1401, allocations: 134 kB / 362.4 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.1403, allocations: 81.53 kB / 362.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.1403, allocations: 20.7 kB / 362.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1403, allocations: 4 kB / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1403, allocations: 0 / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1404, allocations: 0 / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002476/0.1406, allocations: 193.4 kB / 362.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1406, allocations: 4 kB / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.13e-05/0.1406, allocations: 0 / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1406, allocations: 8 kB / 362.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.1407, allocations: 4 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1407, allocations: 0 / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1407, allocations: 7.938 kB / 362.7 MB, free: 8.875 MB / 302.1 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:7903:5-7903: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.0003961/0.1411, allocations: 367.8 kB / 363.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/0.1411, allocations: 93 kB / 363.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.1412, allocations: 4.094 kB / 363.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.083e-05/0.1413, allocations: 7.938 kB / 363.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.1413, allocations: 4 kB / 363.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.1413, allocations: 11.98 kB / 363.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.044e-05/0.1414, allocations: 101.6 kB / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.263e-06/0.1414, allocations: 0 / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.1417, allocations: 19.94 kB / 363.3 MB, free: 8.227 MB / 302.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 (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.0001232/0.1418, allocations: 95.25 kB / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001741/0.142, allocations: 72.16 kB / 363.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.142, allocations: 0 / 363.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.343e-05/0.142, allocations: 12 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.1423, allocations: 55.89 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.1427, allocations: 235.1 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.1431, allocations: 0.716 MB / 364.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.91e-05/0.1431, allocations: 4.438 kB / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.1431, allocations: 15.44 kB / 364.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1431, allocations: 0 / 364.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of Templates: time 0.002978/0.1461, allocations: 0.6752 MB / 365.2 MB, free: 6.289 MB / 302.1 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