Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009993/0.0009993, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009727/0.0009727, allocations: 94.66 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.655e-05/1.667e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.469, allocations: 77.38 MB / 472.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.4693, allocations: 78.66 kB / 472.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004546/0.4738, allocations: 1.654 MB / 474.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4739, allocations: 0 / 474.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.4739, allocations: 0 / 474.4 MB, free: 13.07 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.0003958/0.4743, allocations: 386.6 kB / 474.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.4744, allocations: 12.69 kB / 474.8 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.4744, allocations: 7.906 kB / 474.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.4746, allocations: 204.6 kB / 475 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.4747, allocations: 4 kB / 475 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.4747, allocations: 8 kB / 475 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001621/0.4748, allocations: 51.03 kB / 475 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.4752, allocations: 181.7 kB / 475.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.4752, allocations: 4 kB / 475.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.4752, allocations: 0 / 475.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.4752, allocations: 4 kB / 475.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/0.4757, allocations: 361.5 kB / 475.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.4758, allocations: 123.2 kB / 475.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.322e-05/0.4759, allocations: 62.86 kB / 475.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.476, allocations: 3.938 kB / 475.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.476, allocations: 36.2 kB / 475.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.476, allocations: 0 / 475.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002581/0.4763, allocations: 107 kB / 475.9 MB, free: 11.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.4763, allocations: 108 kB / 476 MB, free: 11.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.4764, allocations: 148.4 kB / 476.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.4765, allocations: 25.7 kB / 476.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.4765, allocations: 93.53 kB / 476.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.4765, allocations: 9.891 kB / 476.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.4765, allocations: 0 / 476.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.4766, allocations: 326.1 kB / 476.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.424e-05/0.4767, allocations: 11.38 kB / 476.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.096e-05/0.4767, allocations: 75.44 kB / 476.7 MB, free: 10.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.405e-05/0.4768, allocations: 27.45 kB / 476.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4768, allocations: 7.891 kB / 476.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001398/0.4769, allocations: 105 kB / 476.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.4769, allocations: 4.625 kB / 476.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.477, allocations: 4 kB / 476.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.477, allocations: 4 kB / 476.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.4771, allocations: 27.58 kB / 476.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.4771, allocations: 0 / 476.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.4772, allocations: 13.05 kB / 476.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.4772, allocations: 8 kB / 476.9 MB, free: 10.61 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,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.u,hold1.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 7.162e-05/0.4773, allocations: 110.8 kB / 477 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001702/0.4775, allocations: 124.9 kB / 477.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.4775, allocations: 11.91 kB / 477.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.437e-05/0.4776, allocations: 15.19 kB / 477.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.4776, allocations: 3.984 kB / 477.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.964e-06/0.4776, allocations: 4 kB / 477.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4776, allocations: 5.469 kB / 477.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.4778, allocations: 168.2 kB / 477.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4778, allocations: 0 / 477.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.4779, allocations: 25.34 kB / 477.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.4779, allocations: 4 kB / 477.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.478, allocations: 0 / 477.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.478, allocations: 0 / 477.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.478, allocations: 4 kB / 477.3 MB, free: 10.17 MB / 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) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.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.0003749/0.4784, allocations: 388.2 kB / 477.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.4784, allocations: 106 kB / 477.8 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.4785, allocations: 0 / 477.8 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.4786, allocations: 7.141 kB / 477.8 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.4786, allocations: 5.594 kB / 477.8 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.4786, allocations: 0 / 477.8 MB, free: 9.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.344e-05/0.4787, allocations: 114.8 kB / 477.9 MB, free: 9.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4787, allocations: 0 / 477.9 MB, free: 9.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002764/0.479, allocations: 12 kB / 478 MB, free: 9.59 MB / 346.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 (hold1.y,sample1.u,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.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 [/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) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.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 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1765:3-1765:84:writable] Error: Internal error function createFMIModelDerivatives failed Notification: Performance of Backend phase and start with SimCode phase: time 0.000484/0.4795, allocations: 0.688 MB / 478.6 MB, free: 8.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.4797, allocations: 69.12 kB / 478.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4797, allocations: 0 / 478.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.526e-05/0.4797, allocations: 5.5 kB / 478.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.48, allocations: 68.97 kB / 478.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/0.4805, allocations: 162.7 kB / 478.9 MB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.4807, allocations: 0.7121 MB / 479.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.822e-05/0.4807, allocations: 7.516 kB / 479.7 MB, free: 7.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.347e-05/0.4808, allocations: 26.08 kB / 479.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4808, allocations: 4 kB / 479.7 MB, free: 7.945 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.5023, allocations: 1.617 MB / 481.3 MB, free: 7.023 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.5026, allocations: 152.2 kB / 481.5 MB, free: 6.832 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/2.129, allocations: 0 / 481.5 MB, free: 6.832 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat does not exist to compare? outputFormat=mat