Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",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.001736/0.001736, allocations: 182.4 kB / 7.845 MB, free: 1.133 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.872/1.872, allocations: 205.2 MB / 213.4 MB, free: 8.574 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00125/0.001249, allocations: 92.22 kB / 261.4 MB, free: 5.152 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1117/0.1117, allocations: 12.59 MB / 322 MB, free: 10.37 MB / 274.8 MB Notification: Performance of FrontEnd - loaded program: time 0.147/0.2587, allocations: 56.51 MB / 378.5 MB, free: 1.738 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.5012, allocations: 50.36 MB / 428.9 MB, free: 57.79 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.6311, allocations: 78.8 MB / 0.4958 GB, free: 10.87 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003768/0.6315, allocations: 79.95 kB / 0.4958 GB, free: 10.79 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.01054/0.6421, allocations: 2.414 MB / 0.4982 GB, free: 8.332 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.6422, allocations: 8 kB / 0.4982 GB, free: 8.324 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.696e-05/0.6422, allocations: 15.81 kB / 0.4982 GB, free: 8.309 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004207/0.6427, allocations: 239.7 kB / 0.4984 GB, free: 8.031 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.6427, allocations: 4 kB / 0.4985 GB, free: 8.027 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.6427, allocations: 4 kB / 0.4985 GB, free: 8.023 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001968/0.643, allocations: 48.36 kB / 0.4985 GB, free: 7.977 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.6436, allocations: 231.7 kB / 0.4987 GB, free: 7.719 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.6436, allocations: 0 / 0.4987 GB, free: 7.719 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.6436, allocations: 4 kB / 0.4987 GB, free: 7.715 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.6437, allocations: 0 / 0.4987 GB, free: 7.715 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000743/0.6444, allocations: 415.8 kB / 0.4991 GB, free: 7.258 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.6449, allocations: 250.5 kB / 0.4994 GB, free: 6.949 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.6451, allocations: 92.28 kB / 0.4994 GB, free: 6.844 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.6452, allocations: 11.92 kB / 0.4995 GB, free: 6.832 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.6452, allocations: 38.56 kB / 0.4995 GB, free: 6.785 MB / 354.8 MB Notification: Performance of pre-optimization done (n=17): time 2.855e-06/0.6452, allocations: 0 / 0.4995 GB, free: 6.785 MB / 354.8 MB Notification: Performance of matching and sorting (n=17): time 0.0004542/0.6457, allocations: 129.4 kB / 0.4996 GB, free: 6.652 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.6458, allocations: 187.9 kB / 0.4998 GB, free: 6.426 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.6461, allocations: 158.2 kB / 0.5 GB, free: 6.266 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.6461, allocations: 25.7 kB / 0.5 GB, free: 6.234 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.875e-05/0.6462, allocations: 96.06 kB / 0.5001 GB, free: 6.137 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.6462, allocations: 11.84 kB / 0.5001 GB, free: 6.125 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-06/0.6463, allocations: 0 / 0.5001 GB, free: 6.125 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6464, allocations: 332.2 kB / 0.5004 GB, free: 5.793 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.724e-05/0.6465, allocations: 15.91 kB / 0.5004 GB, free: 5.777 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.6466, allocations: 122.6 kB / 0.5005 GB, free: 5.605 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.975e-05/0.6467, allocations: 31.95 kB / 0.5006 GB, free: 5.574 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6467, allocations: 0 / 0.5006 GB, free: 5.574 MB / 354.8 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003113/0.6471, allocations: 137.5 kB / 0.5007 GB, free: 5.434 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.6471, allocations: 4 kB / 0.5007 GB, free: 5.43 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.6471, allocations: 4 kB / 0.5007 GB, free: 5.426 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.6471, allocations: 4 kB / 0.5007 GB, free: 5.422 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.6474, allocations: 35.92 kB / 0.5007 GB, free: 5.387 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.6475, allocations: 8 kB / 0.5007 GB, free: 5.379 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.6476, allocations: 19.83 kB / 0.5008 GB, free: 5.359 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.6477, allocations: 12.19 kB / 0.5008 GB, free: 5.348 MB / 354.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001048/0.6478, allocations: 108.9 kB / 0.5009 GB, free: 5.234 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.6481, allocations: 117.4 kB / 0.501 GB, free: 5.113 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.334e-05/0.6482, allocations: 17.39 kB / 0.501 GB, free: 5.098 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.6482, allocations: 4 kB / 0.501 GB, free: 5.094 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.6482, allocations: 3.906 kB / 0.501 GB, free: 5.09 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.6482, allocations: 4 kB / 0.501 GB, free: 5.086 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003271/0.6486, allocations: 190.1 kB / 0.5012 GB, free: 4.863 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.6486, allocations: 32 / 0.5012 GB, free: 4.863 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.6489, allocations: 43.97 kB / 0.5012 GB, free: 4.82 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.6489, allocations: 0 / 0.5012 GB, free: 4.82 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.6489, allocations: 4 kB / 0.5012 GB, free: 4.816 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6489, allocations: 0 / 0.5012 GB, free: 4.816 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.6489, allocations: 7.938 kB / 0.5013 GB, free: 4.809 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004184/0.6494, allocations: 371.2 kB / 0.5016 GB, free: 4.398 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005302/0.6499, allocations: 0.7385 MB / 0.5023 GB, free: 3.605 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.6501, allocations: 108.8 kB / 0.5024 GB, free: 3.48 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.6501, allocations: 7.984 kB / 0.5024 GB, free: 3.473 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.6504, allocations: 8 kB / 0.5024 GB, free: 3.465 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.6504, allocations: 4 kB / 0.5024 GB, free: 3.461 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.6505, allocations: 7.984 kB / 0.5025 GB, free: 3.453 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.0001472/0.6506, allocations: 128.1 kB / 0.5026 GB, free: 3.328 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.001268/0.6519, allocations: 19.91 kB / 0.5026 GB, free: 3.309 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.000131/0.6521, allocations: 95.19 kB / 0.5027 GB, free: 3.207 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.6523, allocations: 79.86 kB / 0.5028 GB, free: 3.129 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6523, allocations: 1 kB / 0.5028 GB, free: 3.129 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 3.023e-05/0.6524, allocations: 8 kB / 0.5028 GB, free: 3.121 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.6531, allocations: 84.59 kB / 0.5029 GB, free: 3.039 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.6548, allocations: 322.8 kB / 0.5032 GB, free: 2.684 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00048/0.6553, allocations: 0.7471 MB / 0.5039 GB, free: 1.91 MB / 354.8 MB Notification: Performance of SimCode: time 1.183e-06/0.6553, allocations: 0 / 0.5039 GB, free: 1.91 MB / 354.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1)