Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 173.9 kB / 16.8 MB, free: 5.008 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008689/0.0008689, allocations: 85.5 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0752/0.0752, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.000344, allocations: 11.94 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07801, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2): time 0.001665/0.07973, allocations: 1.301 MB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004084/0.08017, allocations: 163.5 kB / 445.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.883e-05/0.08029, allocations: 4 kB / 445.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.1e-05/0.08034, allocations: 7.922 kB / 445.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.08047, allocations: 3.984 kB / 445.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.08074, allocations: 43.91 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.663e-05/0.08085, allocations: 59.83 kB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.08097, allocations: 32.5 kB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.328e-05/0.08101, allocations: 15.92 kB / 445.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.346e-05/0.08106, allocations: 27.8 kB / 445.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.08109, allocations: 0 / 445.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.424e-05/0.08111, allocations: 4 kB / 445.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.056e-05/0.08117, allocations: 19.91 kB / 445.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.187e-05/0.08122, allocations: 53.52 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.125e-05/0.0813, allocations: 63.7 kB / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.08131, allocations: 0 / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08132, allocations: 0 / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.08133, allocations: 0 / 445.5 MB, free: 13.62 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.0003873/0.08172, allocations: 363.2 kB / 445.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.08177, allocations: 8.031 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.773e-05/0.08181, allocations: 8.844 kB / 445.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.08198, allocations: 196.7 kB / 446 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.08201, allocations: 12.38 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.08203, allocations: 4.375 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.08235, allocations: 184.1 kB / 446.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.08237, allocations: 8.109 kB / 446.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.08239, allocations: 15.94 kB / 446.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.0824, allocations: 0 / 446.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.495e-05/0.0825, allocations: 35.98 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003511/0.08286, allocations: 369.8 kB / 446.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.08302, allocations: 119.6 kB / 446.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.336e-05/0.08311, allocations: 66.69 kB / 446.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.08315, allocations: 192 / 446.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.08317, allocations: 46.48 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.08318, allocations: 0 / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003061/0.08349, allocations: 133.4 kB / 447 MB, free: 11.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.08354, allocations: 114.8 kB / 447.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.98e-05/0.08364, allocations: 140.5 kB / 447.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.08365, allocations: 33.95 kB / 447.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.08369, allocations: 84.42 kB / 447.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.08371, allocations: 19.88 kB / 447.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.08372, allocations: 0 / 447.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.08378, allocations: 318.8 kB / 447.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.185e-05/0.08383, allocations: 19.98 kB / 447.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.533e-05/0.08389, allocations: 81.38 kB / 447.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.661e-05/0.084, allocations: 113.2 kB / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.08401, allocations: 0 / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001565/0.08417, allocations: 121.7 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.08419, allocations: 4 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.0842, allocations: 7.984 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.08422, allocations: 4 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.14e-05/0.08425, allocations: 12.27 kB / 448.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.08427, allocations: 11.94 kB / 448.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.222e-05/0.08432, allocations: 8 kB / 448.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.08434, allocations: 4 kB / 448.1 MB, free: 10.66 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,hold.u,hold.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.339e-05/0.08442, allocations: 134.6 kB / 448.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.08454, allocations: 85.52 kB / 448.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.08458, allocations: 12.72 kB / 448.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.08459, allocations: 4 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.0846, allocations: 4 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.0846, allocations: 0 / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.0848, allocations: 197.4 kB / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.08481, allocations: 0 / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.639e-05/0.08483, allocations: 11.88 kB / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.08484, allocations: 0 / 448.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.08485, allocations: 4 kB / 448.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.08486, allocations: 4 kB / 448.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.08487, allocations: 0 / 448.5 MB, free: 10.15 MB / 298.7 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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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:7947:5-7947: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.0003215/0.08519, allocations: 336.4 kB / 448.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.08525, allocations: 97 kB / 449 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.08527, allocations: 7.938 kB / 449 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/0.08536, allocations: 8 kB / 449 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.266e-05/0.0854, allocations: 3.984 kB / 449 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.08542, allocations: 4 kB / 449 MB, free: 9.664 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.641e-05/0.08547, allocations: 103.3 kB / 449.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08547, allocations: 0 / 449.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.08574, allocations: 12 kB / 449.1 MB, free: 9.551 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,hold.y,sample1.y,hold.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 7.421e-05/0.08582, allocations: 99.25 kB / 449.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001554/0.08598, allocations: 75.78 kB / 449.3 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.086, allocations: 0 / 449.3 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.857e-05/0.08603, allocations: 11.94 kB / 449.3 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.08644, allocations: 61.38 kB / 449.3 MB, free: 9.297 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.08683, allocations: 273.3 kB / 449.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.08698, allocations: 0.7043 MB / 450.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/0.08701, allocations: 11.44 kB / 450.3 MB, free: 8.254 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.08702, allocations: 4 kB / 450.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of Templates: time 0.002136/0.08916, allocations: 0.9816 MB / 451.3 MB, free: 7.27 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches