Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002713/0.002717, allocations: 174.3 kB / 8.19 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 86.31 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09598/0.09598, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.014e-05/1.024e-05, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08597, allocations: 50.36 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/0.3725, allocations: 81.47 MB / 0.4983 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.3728, allocations: 77.83 kB / 0.4983 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03409/0.4069, allocations: 7.994 MB / 0.5061 GB, free: 10.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.407, allocations: 3.844 kB / 0.5061 GB, free: 10.08 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007044/0.4077, allocations: 0.4968 MB / 0.5066 GB, free: 9.602 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.4078, allocations: 7.719 kB / 0.5066 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.524e-05/0.4079, allocations: 23.31 kB / 0.5067 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.4085, allocations: 280.7 kB / 0.5069 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.4085, allocations: 3.906 kB / 0.5069 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.4085, allocations: 7.594 kB / 0.5069 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002317/0.4088, allocations: 63.95 kB / 0.507 GB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005902/0.4094, allocations: 275.6 kB / 0.5073 GB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4094, allocations: 3.844 kB / 0.5073 GB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.4095, allocations: 3.938 kB / 0.5073 GB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.4095, allocations: 0 / 0.5073 GB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006432/0.4101, allocations: 362.6 kB / 0.5076 GB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.4105, allocations: 158.9 kB / 0.5078 GB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.4106, allocations: 73.84 kB / 0.5078 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.4107, allocations: 3.844 kB / 0.5078 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.4108, allocations: 68.62 kB / 0.5079 GB, free: 8.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.075e-06/0.4108, allocations: 0 / 0.5079 GB, free: 8.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004566/0.4113, allocations: 161 kB / 0.5081 GB, free: 8.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.4114, allocations: 143.7 kB / 0.5082 GB, free: 8.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.4118, allocations: 233.4 kB / 0.5084 GB, free: 8.383 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.4118, allocations: 29.45 kB / 0.5084 GB, free: 8.352 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.78e-05/0.4119, allocations: 154.5 kB / 0.5086 GB, free: 8.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.979e-05/0.4119, allocations: 30.78 kB / 0.5086 GB, free: 8.184 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.4119, allocations: 0 / 0.5086 GB, free: 8.184 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.989e-05/0.412, allocations: 318.6 kB / 0.5089 GB, free: 7.867 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.036e-05/0.4121, allocations: 35.7 kB / 0.509 GB, free: 7.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.4123, allocations: 161.3 kB / 0.5091 GB, free: 7.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.4125, allocations: 51.98 kB / 0.5092 GB, free: 7.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.4125, allocations: 1.031 kB / 0.5092 GB, free: 7.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000491/0.413, allocations: 177.1 kB / 0.5093 GB, free: 7.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.4131, allocations: 12.12 kB / 0.5093 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.4131, allocations: 3.375 kB / 0.5093 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.4131, allocations: 6.438 kB / 0.5093 GB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.4133, allocations: 25.05 kB / 0.5094 GB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.4133, allocations: 11.03 kB / 0.5094 GB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.4135, allocations: 14.11 kB / 0.5094 GB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.4135, allocations: 14.56 kB / 0.5094 GB, free: 7.582 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001115/0.4136, allocations: 44.52 kB / 0.5095 GB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.4139, allocations: 117.5 kB / 0.5096 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003119/0.4143, allocations: 101.3 kB / 0.5097 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.4143, allocations: 7.438 kB / 0.5097 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4143, allocations: 1.125 kB / 0.5097 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.4143, allocations: 9.391 kB / 0.5097 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002554/0.4146, allocations: 210.3 kB / 0.5099 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4146, allocations: 1.781 kB / 0.5099 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.197e-05/0.4147, allocations: 16.83 kB / 0.5099 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.4147, allocations: 2.594 kB / 0.5099 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.4147, allocations: 1.406 kB / 0.5099 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.413e-06/0.4148, allocations: 6.094 kB / 0.5099 GB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4148, allocations: 9.016 kB / 0.5099 GB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004267/0.4152, allocations: 227.7 kB / 0.5101 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.4154, allocations: 125.3 kB / 0.5103 GB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.4155, allocations: 9.031 kB / 0.5103 GB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.4156, allocations: 8.516 kB / 0.5103 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/0.4157, allocations: 5.844 kB / 0.5103 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.4157, allocations: 14.23 kB / 0.5103 GB, free: 6.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002802/0.416, allocations: 186 kB / 0.5105 GB, free: 6.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004889/0.4165, allocations: 40.81 kB / 0.5105 GB, free: 6.84 MB / 330.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: 20 ($whenCondition1,sample.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008745/0.4174, allocations: 325.8 kB / 0.5108 GB, free: 6.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004581/0.4179, allocations: 129.1 kB / 0.5109 GB, free: 6.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4179, allocations: 0 / 0.5109 GB, free: 6.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.532e-05/0.418, allocations: 23.84 kB / 0.511 GB, free: 6.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000715/0.4187, allocations: 96.5 kB / 0.5111 GB, free: 6.547 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008909/0.4196, allocations: 310.2 kB / 0.5113 GB, free: 6.367 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.42, allocations: 0.7898 MB / 0.5121 GB, free: 5.617 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.42, allocations: 0 / 0.5121 GB, free: 5.617 MB / 330.7 MB Notification: Performance of Templates: time 0.008366/0.4284, allocations: 3.221 MB / 0.5153 GB, free: 3.992 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches