Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.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.TestBackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002321/0.002321, allocations: 176.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.134/2.134, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001101/0.001101, allocations: 95.03 kB / 261.8 MB, free: 13.44 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.1074/0.1074, allocations: 12.59 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.216e-05, allocations: 4 kB / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09145, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.5365, allocations: 77.51 MB / 0.495 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.5368, allocations: 54.62 kB / 0.4951 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008522/0.5454, allocations: 1.442 MB / 0.4965 GB, free: 11.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5455, allocations: 4 kB / 0.4965 GB, free: 11.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.5455, allocations: 0 / 0.4965 GB, free: 11.4 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.000542/0.546, allocations: 370.6 kB / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.299e-05/0.5461, allocations: 11.59 kB / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.337e-05/0.5462, allocations: 11.69 kB / 0.4969 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.5465, allocations: 202.6 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.5466, allocations: 3.953 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.5466, allocations: 3.844 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001877/0.5468, allocations: 34.89 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.5473, allocations: 163 kB / 0.4973 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.5474, allocations: 0 / 0.4973 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.5474, allocations: 0 / 0.4973 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.5474, allocations: 0 / 0.4973 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005527/0.548, allocations: 280.2 kB / 0.4975 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.5484, allocations: 198.8 kB / 0.4977 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.5486, allocations: 57.75 kB / 0.4978 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.5486, allocations: 0 / 0.4978 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.5487, allocations: 40.8 kB / 0.4978 GB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 3.587e-06/0.5487, allocations: 0 / 0.4978 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003932/0.5491, allocations: 90.44 kB / 0.4979 GB, free: 10.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.106e-05/0.5492, allocations: 136.3 kB / 0.498 GB, free: 9.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.5494, allocations: 113.4 kB / 0.4981 GB, free: 9.887 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.5494, allocations: 25.7 kB / 0.4982 GB, free: 9.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.5495, allocations: 97.64 kB / 0.4983 GB, free: 9.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.5495, allocations: 11.19 kB / 0.4983 GB, free: 9.766 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.5496, allocations: 0 / 0.4983 GB, free: 9.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.978e-05/0.5497, allocations: 320.1 kB / 0.4986 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.721e-05/0.5497, allocations: 11.53 kB / 0.4986 GB, free: 9.453 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.157e-05/0.5499, allocations: 74.61 kB / 0.4987 GB, free: 9.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.254e-05/0.55, allocations: 25.55 kB / 0.4987 GB, free: 9.355 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.55, allocations: 0 / 0.4987 GB, free: 9.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003045/0.5503, allocations: 97.33 kB / 0.4988 GB, free: 9.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.5504, allocations: 7.656 kB / 0.4988 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5504, allocations: 3.844 kB / 0.4988 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.5504, allocations: 8.125 kB / 0.4988 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.5507, allocations: 25.27 kB / 0.4988 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.5507, allocations: 11.47 kB / 0.4988 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.5509, allocations: 13.17 kB / 0.4988 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.5509, allocations: 3.969 kB / 0.4988 GB, free: 9.289 MB / 330.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.866e-05/0.551, allocations: 104.9 kB / 0.4989 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003141/0.5514, allocations: 99.14 kB / 0.499 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.218e-05/0.5515, allocations: 11.75 kB / 0.4991 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.161e-05/0.5516, allocations: 18.44 kB / 0.4991 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.5516, allocations: 6 kB / 0.4991 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5516, allocations: 0 / 0.4991 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.5516, allocations: 3.844 kB / 0.4991 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002607/0.5519, allocations: 152.3 kB / 0.4992 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.5519, allocations: 3.953 kB / 0.4992 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.5522, allocations: 24.48 kB / 0.4992 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.615e-06/0.5522, allocations: 0 / 0.4992 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5523, allocations: 3.844 kB / 0.4993 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.83e-06/0.5523, allocations: 0 / 0.4993 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/0.5523, allocations: 3.938 kB / 0.4993 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.5527, allocations: 239.6 kB / 0.4995 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.299e-05/0.5527, allocations: 96.78 kB / 0.4996 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.5528, allocations: 6.391 kB / 0.4996 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.553, allocations: 3.875 kB / 0.4996 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.5531, allocations: 0 / 0.4996 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.5531, allocations: 13.81 kB / 0.4996 GB, free: 8.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.5533, allocations: 100.5 kB / 0.4997 GB, free: 8.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.5533, allocations: 0 / 0.4997 GB, free: 8.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005843/0.5539, allocations: 15.45 kB / 0.4997 GB, free: 8.551 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (11): * Single equations (assignments): 11 * 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.0006358/0.5545, allocations: 0.9773 MB / 0.5007 GB, free: 7.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002539/0.5548, allocations: 55.16 kB / 0.5007 GB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5548, allocations: 0 / 0.5007 GB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.5549, allocations: 3.875 kB / 0.5007 GB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006513/0.5556, allocations: 47.2 kB / 0.5008 GB, free: 7.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008937/0.5565, allocations: 167.6 kB / 0.5009 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.5567, allocations: 0.7125 MB / 0.5016 GB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.153e-05/0.5569, allocations: 6.922 kB / 0.5016 GB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.325e-05/0.557, allocations: 24.47 kB / 0.5017 GB, free: 6.727 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.557, allocations: 0 / 0.5017 GB, free: 6.727 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0365/0.5935, allocations: 1.706 MB / 0.5033 GB, free: 6.605 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/0.5938, allocations: 156.7 kB / 0.5035 GB, free: 6.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/3.276, allocations: 4 kB / 0.5035 GB, free: 6.406 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe 2>&1)