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.001277/0.001277, allocations: 173.5 kB / 16.76 MB, free: 5.051 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.345/1.345, allocations: 205 MB / 222.5 MB, free: 9.152 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.0006961/0.0006962, allocations: 84.56 kB / 270.5 MB, free: 8.676 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.06717/0.06717, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 12 kB / 391.7 MB, free: 66.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07272/0.07308, allocations: 49.97 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2): time 0.001523/0.07465, allocations: 1.321 MB / 443 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003695/0.07504, allocations: 163.5 kB / 443.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.377e-05/0.07515, allocations: 7.938 kB / 443.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.079e-05/0.07524, allocations: 0 / 443.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.07537, allocations: 3.938 kB / 443.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.07564, allocations: 55.89 kB / 443.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.843e-05/0.07573, allocations: 59.83 kB / 443.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.07585, allocations: 28.5 kB / 443.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.199e-05/0.07589, allocations: 11.92 kB / 443.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.632e-05/0.07593, allocations: 27.8 kB / 443.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.07596, allocations: 8 kB / 443.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.07598, allocations: 0 / 443.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.768e-05/0.07603, allocations: 19.91 kB / 443.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.07607, allocations: 27.81 kB / 443.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.331e-05/0.07615, allocations: 51.78 kB / 443.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.07616, allocations: 0 / 443.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.07616, allocations: 0 / 443.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.07617, allocations: 0 / 443.5 MB, free: 14.61 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.0003536/0.07653, allocations: 375.2 kB / 443.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.07657, allocations: 12.03 kB / 443.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.07662, allocations: 8.844 kB / 443.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.07676, allocations: 196.1 kB / 444 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.07679, allocations: 4.375 kB / 444 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.07681, allocations: 8.375 kB / 444 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.07713, allocations: 188.1 kB / 444.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.07715, allocations: 8.109 kB / 444.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.07717, allocations: 3.938 kB / 444.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.07718, allocations: 3.938 kB / 444.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.231e-05/0.07728, allocations: 39.98 kB / 444.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.07758, allocations: 369.8 kB / 444.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.07773, allocations: 115.8 kB / 444.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.07782, allocations: 66.69 kB / 444.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.07785, allocations: 0 / 444.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.07788, allocations: 50.48 kB / 444.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.07788, allocations: 0 / 444.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002879/0.07818, allocations: 129.4 kB / 445 MB, free: 12.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.07823, allocations: 119 kB / 445.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.42e-05/0.07832, allocations: 144.4 kB / 445.3 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.07833, allocations: 25.7 kB / 445.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.07837, allocations: 84.42 kB / 445.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.07839, allocations: 15.89 kB / 445.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.07842, allocations: 17.72 kB / 445.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.07847, allocations: 326.8 kB / 445.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.794e-05/0.07851, allocations: 12 kB / 445.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.135e-05/0.07857, allocations: 89.36 kB / 445.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.516e-05/0.07868, allocations: 113.2 kB / 445.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.07869, allocations: 0 / 445.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001534/0.07885, allocations: 122 kB / 446 MB, free: 11.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.07887, allocations: 12.03 kB / 446.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.07888, allocations: 0 / 446.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.0789, allocations: 4 kB / 446.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.807e-05/0.07893, allocations: 7.938 kB / 446.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.07894, allocations: 4 kB / 446.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.36e-05/0.079, allocations: 11.98 kB / 446.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.07901, allocations: 8 kB / 446.1 MB, free: 11.62 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.y,hold.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 6.661e-05/0.07909, allocations: 130.6 kB / 446.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.0792, allocations: 89.52 kB / 446.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.07924, allocations: 20.7 kB / 446.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.07925, allocations: 0 / 446.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.07926, allocations: 4 kB / 446.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.07927, allocations: 0 / 446.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.07945, allocations: 193.4 kB / 446.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.07945, allocations: 0 / 446.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.393e-05/0.07947, allocations: 7.984 kB / 446.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.07948, allocations: 3.938 kB / 446.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.0795, allocations: 8 kB / 446.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.0795, allocations: 3.938 kB / 446.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.07951, allocations: 4 kB / 446.6 MB, free: 11.11 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.0002733/0.07979, allocations: 336.4 kB / 446.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.07984, allocations: 96.98 kB / 447 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.07986, allocations: 8 kB / 447 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.809e-05/0.07995, allocations: 0 / 447 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.07998, allocations: 4 kB / 447 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.07999, allocations: 0 / 447 MB, free: 10.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.143e-05/0.08004, allocations: 111.2 kB / 447.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08004, allocations: 0 / 447.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002576/0.08031, allocations: 16 kB / 447.1 MB, free: 10.51 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 6.325e-05/0.08038, allocations: 99.25 kB / 447.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.08053, allocations: 75.78 kB / 447.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.08054, allocations: 0 / 447.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.875e-05/0.08058, allocations: 8.688 kB / 447.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.081, allocations: 68.05 kB / 447.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003157/0.08133, allocations: 267 kB / 447.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.08146, allocations: 0.7043 MB / 448.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.606e-05/0.08149, allocations: 15.44 kB / 448.3 MB, free: 9.207 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.0815, allocations: 0 / 448.3 MB, free: 9.207 MB / 298.7 MB Notification: Performance of Templates: time 0.001781/0.08328, allocations: 0.9766 MB / 449.3 MB, free: 8.23 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