Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00183/0.001836, allocations: 186.5 kB / 7.844 MB, free: 2.473 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.2 MB / 213.5 MB, free: 13.85 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.001339/0.001339, allocations: 86.78 kB / 261.5 MB, free: 13.63 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.1035/0.1035, allocations: 12.59 MB / 322 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.276/0.3795, allocations: 56.48 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.5131, allocations: 50.38 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.8829, allocations: 77.41 MB / 0.4944 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.8832, allocations: 61.44 kB / 0.4945 GB, free: 11.91 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.006102/0.8894, allocations: 1.465 MB / 0.4959 GB, free: 11.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.8894, allocations: 7.688 kB / 0.4959 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.8895, allocations: 11.66 kB / 0.4959 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.8897, allocations: 189.9 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.8897, allocations: 3.844 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.8897, allocations: 3.844 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000141/0.8899, allocations: 32.73 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.8902, allocations: 148 kB / 0.4963 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.8902, allocations: 3.906 kB / 0.4963 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.8903, allocations: 0 / 0.4963 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.8903, allocations: 0 / 0.4963 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.8907, allocations: 262.4 kB / 0.4965 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.891, allocations: 169.8 kB / 0.4967 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.233e-05/0.8911, allocations: 50.16 kB / 0.4967 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.8911, allocations: 5.484 kB / 0.4967 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.8911, allocations: 34.41 kB / 0.4968 GB, free: 10.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.124e-06/0.8911, allocations: 3.938 kB / 0.4968 GB, free: 10.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002626/0.8914, allocations: 81.67 kB / 0.4969 GB, free: 10.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.8915, allocations: 110.4 kB / 0.497 GB, free: 10.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.8916, allocations: 113.7 kB / 0.4971 GB, free: 10.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.8916, allocations: 25.7 kB / 0.4971 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.8916, allocations: 86.31 kB / 0.4972 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.8917, allocations: 13.09 kB / 0.4972 GB, free: 10.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.8917, allocations: 0 / 0.4972 GB, free: 10.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.838e-05/0.8918, allocations: 320.8 kB / 0.4975 GB, free: 9.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.901e-05/0.8918, allocations: 11.12 kB / 0.4975 GB, free: 9.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.469e-05/0.8919, allocations: 60 kB / 0.4976 GB, free: 9.906 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.8919, allocations: 17.8 kB / 0.4976 GB, free: 9.902 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8919, allocations: 0 / 0.4976 GB, free: 9.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001643/0.8921, allocations: 85.84 kB / 0.4977 GB, free: 9.855 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.8921, allocations: 8.094 kB / 0.4977 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.8922, allocations: 4 kB / 0.4977 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.8922, allocations: 3.812 kB / 0.4977 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.8924, allocations: 18.48 kB / 0.4977 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.8924, allocations: 3.969 kB / 0.4977 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.353e-05/0.8925, allocations: 9.25 kB / 0.4977 GB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.8925, allocations: 7.781 kB / 0.4977 GB, free: 9.844 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 6.838e-05/0.8926, allocations: 112.8 kB / 0.4978 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.8927, allocations: 68.03 kB / 0.4979 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.625e-05/0.8928, allocations: 13.28 kB / 0.4979 GB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.8928, allocations: 3.906 kB / 0.4979 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.8928, allocations: 7.344 kB / 0.4979 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.8928, allocations: 0.5625 kB / 0.4979 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.893, allocations: 151.1 kB / 0.4981 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.893, allocations: 3.938 kB / 0.4981 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.8932, allocations: 18.86 kB / 0.4981 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.8932, allocations: 7.719 kB / 0.4981 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.8932, allocations: 8.188 kB / 0.4981 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.8933, allocations: 0 / 0.4981 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.8933, allocations: 3.719 kB / 0.4981 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002058/0.8935, allocations: 208.4 kB / 0.4983 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002489/0.8937, allocations: 0.5807 MB / 0.4989 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.8938, allocations: 89.56 kB / 0.4989 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.8938, allocations: 4.562 kB / 0.499 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.894, allocations: 8.453 kB / 0.499 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.894, allocations: 4.609 kB / 0.499 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.894, allocations: 0.6562 kB / 0.499 GB, free: 8.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.074e-05/0.8941, allocations: 96.75 kB / 0.4991 GB, free: 8.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00117/0.8953, allocations: 7.656 kB / 0.4991 GB, free: 8.582 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.000107/0.8954, allocations: 100.7 kB / 0.4992 GB, free: 8.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.8956, allocations: 43 kB / 0.4992 GB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8956, allocations: 7.969 kB / 0.4992 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.087e-05/0.8956, allocations: 0 / 0.4992 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.8961, allocations: 44.86 kB / 0.4993 GB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003652/0.8964, allocations: 120.3 kB / 0.4994 GB, free: 8.371 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.8967, allocations: 0.7214 MB / 0.5001 GB, free: 7.664 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8967, allocations: 4.062 kB / 0.5001 GB, free: 7.66 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)