Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.00294/0.00294, allocations: 179.4 kB / 8.407 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.05/2.05, allocations: 205.3 MB / 214.1 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 92.05 kB / 262.2 MB, free: 1.672 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.09939/0.09939, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.636e-05/2.649e-05, allocations: 4 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3225, allocations: 50.36 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.4708, allocations: 77.57 MB / 0.495 GB, free: 4.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004275/0.4713, allocations: 79.95 kB / 0.495 GB, free: 4.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007026/0.4784, allocations: 1.404 MB / 0.4964 GB, free: 3.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4785, allocations: 0 / 0.4964 GB, free: 3.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.4785, allocations: 4 kB / 0.4964 GB, free: 3.262 MB / 346.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.0005951/0.4791, allocations: 354.4 kB / 0.4968 GB, free: 2.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/0.4792, allocations: 8.031 kB / 0.4968 GB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.4792, allocations: 7.906 kB / 0.4968 GB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.4796, allocations: 202.8 kB / 0.497 GB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.4797, allocations: 0 / 0.497 GB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.4797, allocations: 7.953 kB / 0.497 GB, free: 2.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002007/0.4799, allocations: 36 kB / 0.497 GB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/0.4805, allocations: 161.8 kB / 0.4972 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.4806, allocations: 0 / 0.4972 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.4806, allocations: 0 / 0.4972 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.4806, allocations: 0 / 0.4972 GB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007074/0.4813, allocations: 350.3 kB / 0.4975 GB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.4816, allocations: 103.7 kB / 0.4976 GB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.4818, allocations: 54.83 kB / 0.4977 GB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.4819, allocations: 0 / 0.4977 GB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.4819, allocations: 46.55 kB / 0.4977 GB, free: 1.762 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.756e-06/0.482, allocations: 0 / 0.4977 GB, free: 1.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004229/0.4824, allocations: 89.47 kB / 0.4978 GB, free: 1.668 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.4825, allocations: 110.8 kB / 0.4979 GB, free: 1.535 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.4827, allocations: 118 kB / 0.498 GB, free: 1.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.4828, allocations: 29.69 kB / 0.498 GB, free: 1.375 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4829, allocations: 162.8 kB / 0.4982 GB, free: 1.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.483, allocations: 0 / 0.4982 GB, free: 1.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-06/0.483, allocations: 4.062 kB / 0.4982 GB, free: 1.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.4832, allocations: 318.8 kB / 0.4985 GB, free: 0.8867 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.784e-05/0.4832, allocations: 8 kB / 0.4985 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.4834, allocations: 77.38 kB / 0.4986 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.007e-05/0.4835, allocations: 23.92 kB / 0.4986 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.94e-05/0.4835, allocations: 7.953 kB / 0.4986 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003031/0.4838, allocations: 93.41 kB / 0.4987 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.4839, allocations: 8 kB / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4839, allocations: 0 / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.4839, allocations: 4 kB / 0.4987 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.112e-05/0.484, allocations: 7.984 kB / 0.4987 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.484, allocations: 8.281 kB / 0.4987 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.4842, allocations: 8 kB / 0.4987 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.4842, allocations: 8 kB / 0.4987 GB, free: 0.5977 MB / 346.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 (sample1.u,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 () * 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.0001368/0.4844, allocations: 106.5 kB / 0.4988 GB, free: 500 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002974/0.4847, allocations: 89.48 kB / 0.4989 GB, free: 404 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.411e-05/0.4848, allocations: 12.61 kB / 0.4989 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.4848, allocations: 4 kB / 0.4989 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.4848, allocations: 0 / 0.4989 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.4849, allocations: 0 / 0.4989 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004408/0.4853, allocations: 158.2 kB / 0.4991 GB, free: 188 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.4853, allocations: 0 / 0.4991 GB, free: 188 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.653e-05/0.4854, allocations: 4 kB / 0.4991 GB, free: 184 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.4854, allocations: 3.953 kB / 0.4991 GB, free: 180 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.4855, allocations: 3.938 kB / 0.4991 GB, free: 176 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.357e-06/0.4855, allocations: 7.984 kB / 0.4991 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.4855, allocations: 192 / 0.4991 GB, free: 168 kB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358: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.0006787/0.4862, allocations: 347.6 kB / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.4864, allocations: 101 kB / 0.4995 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.4864, allocations: 0 / 0.4995 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.4867, allocations: 4 kB / 0.4995 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.4867, allocations: 4 kB / 0.4995 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.4868, allocations: 4 kB / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001282/0.4869, allocations: 107.7 kB / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.4869, allocations: 0 / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006803/0.4876, allocations: 12 kB / 0.4997 GB, free: 15.55 MB / 362.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 (sample1.u,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 () * 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.0001683/0.4878, allocations: 91.25 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.4881, allocations: 64.05 kB / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.4882, allocations: 0 / 0.4998 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.06e-05/0.4882, allocations: 8 kB / 0.4998 GB, free: 15.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.4889, allocations: 51.22 kB / 0.4999 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006142/0.4895, allocations: 160.8 kB / 0.5 GB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.49, allocations: 0.7163 MB / 0.5007 GB, free: 14.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.025e-05/0.49, allocations: 19.42 kB / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.4901, allocations: 3.938 kB / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of Templates: time 0.004197/0.4943, allocations: 0.9517 MB / 0.5017 GB, free: 13.43 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches