Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",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.001767/0.001767, allocations: 189.9 kB / 7.845 MB, free: 2.504 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.916/1.916, allocations: 205.2 MB / 213.5 MB, free: 13.84 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.001291/0.001291, allocations: 90.61 kB / 261.5 MB, free: 13.61 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.1129/0.1129, allocations: 12.59 MB / 322 MB, free: 0.957 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2494/0.3624, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.4701, allocations: 50.38 MB / 428.9 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3334/0.8036, allocations: 77.04 MB / 0.494 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.804, allocations: 73.92 kB / 0.4941 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.004384/0.8084, allocations: 1.143 MB / 0.4952 GB, free: 11.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.8085, allocations: 9.219 kB / 0.4952 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.8086, allocations: 11.81 kB / 0.4953 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.8088, allocations: 194.3 kB / 0.4954 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-06/0.8088, allocations: 7.844 kB / 0.4954 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.8088, allocations: 3.719 kB / 0.4955 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.263e-05/0.8089, allocations: 13.09 kB / 0.4955 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.8092, allocations: 97.88 kB / 0.4956 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.8092, allocations: 0 / 0.4956 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.8092, allocations: 1.312 kB / 0.4956 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.8093, allocations: 0 / 0.4956 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003445/0.8096, allocations: 255.8 kB / 0.4958 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.8098, allocations: 127.8 kB / 0.4959 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.991e-05/0.8099, allocations: 22.36 kB / 0.4959 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.8099, allocations: 0 / 0.4959 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.8099, allocations: 35.81 kB / 0.496 GB, free: 10.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/0.8099, allocations: 0 / 0.496 GB, free: 10.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001904/0.8101, allocations: 59.66 kB / 0.496 GB, free: 10.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.8102, allocations: 80.92 kB / 0.4961 GB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.8103, allocations: 119.1 kB / 0.4962 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.8103, allocations: 26.55 kB / 0.4963 GB, free: 10.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.643e-05/0.8104, allocations: 80.14 kB / 0.4963 GB, free: 10.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.8104, allocations: 12.81 kB / 0.4963 GB, free: 10.42 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.8104, allocations: 0 / 0.4963 GB, free: 10.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.222e-05/0.8105, allocations: 320.8 kB / 0.4966 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.619e-05/0.8105, allocations: 3.875 kB / 0.4967 GB, free: 10.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.837e-05/0.8106, allocations: 28.77 kB / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.283e-05/0.8106, allocations: 3.906 kB / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8106, allocations: 0 / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.701e-05/0.8107, allocations: 60.98 kB / 0.4967 GB, free: 10.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.8107, allocations: 7.812 kB / 0.4967 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.8107, allocations: 0 / 0.4967 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.8108, allocations: 0 / 0.4967 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.449e-05/0.8109, allocations: 12.5 kB / 0.4968 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.8109, allocations: 1.406 kB / 0.4968 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.811, allocations: 3.906 kB / 0.4968 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.811, allocations: 4.062 kB / 0.4968 GB, free: 10.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.564e-05/0.811, allocations: 114.3 kB / 0.4969 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/0.8111, allocations: 42.81 kB / 0.4969 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.8112, allocations: 13.36 kB / 0.4969 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8112, allocations: 3.938 kB / 0.4969 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.8112, allocations: 5.078 kB / 0.4969 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.8112, allocations: 0 / 0.4969 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.8114, allocations: 140.1 kB / 0.4971 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.8114, allocations: 0 / 0.4971 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.333e-05/0.8115, allocations: 14.47 kB / 0.4971 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.8115, allocations: 3.906 kB / 0.4971 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.8115, allocations: 3.969 kB / 0.4971 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.8115, allocations: 0 / 0.4971 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.8115, allocations: 3.938 kB / 0.4971 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001478/0.8117, allocations: 164.8 kB / 0.4973 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001611/0.8119, allocations: 0.5382 MB / 0.4978 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.812, allocations: 92.02 kB / 0.4979 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.812, allocations: 0 / 0.4979 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.962e-05/0.8121, allocations: 8.5 kB / 0.4979 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.8121, allocations: 5.172 kB / 0.4979 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.8122, allocations: 7.781 kB / 0.4979 GB, free: 8.898 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.72e-05/0.8122, allocations: 99.34 kB / 0.498 GB, free: 8.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001101/0.8133, allocations: 3.844 kB / 0.498 GB, free: 8.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001048/0.8135, allocations: 101 kB / 0.4981 GB, free: 8.727 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.8136, allocations: 16.23 kB / 0.4981 GB, free: 8.727 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.8136, allocations: 3.875 kB / 0.4981 GB, free: 8.727 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.82e-05/0.8136, allocations: 8.188 kB / 0.4981 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.814, allocations: 21.11 kB / 0.4981 GB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.8143, allocations: 90.61 kB / 0.4982 GB, free: 8.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.8145, allocations: 0.7083 MB / 0.4989 GB, free: 7.926 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8145, allocations: 0 / 0.4989 GB, free: 7.926 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1)