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.0009652/0.0009653, allocations: 175.1 kB / 16.12 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205 MB / 221.9 MB, free: 9.156 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.0007839/0.0007841, allocations: 90.28 kB / 269.9 MB, free: 8.676 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.08457/0.08457, allocations: 12.56 MB / 330.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 8 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09166, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample): time 0.001512/0.09321, allocations: 1.419 MB / 442.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006337/0.09386, allocations: 0.5307 MB / 443.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.48e-05/0.09395, allocations: 0 / 443.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.487e-05/0.094, allocations: 3.938 kB / 443.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.666e-05/0.09408, allocations: 7.938 kB / 443.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.09434, allocations: 39.89 kB / 443.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.767e-05/0.09444, allocations: 71.72 kB / 443.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.09456, allocations: 39.95 kB / 443.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.255e-05/0.09464, allocations: 23.81 kB / 443.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.052e-05/0.09469, allocations: 27.84 kB / 443.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.09472, allocations: 0 / 443.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.09473, allocations: 4 kB / 443.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.816e-05/0.09476, allocations: 15.92 kB / 443.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.0948, allocations: 23.75 kB / 443.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.793e-05/0.09489, allocations: 71.92 kB / 443.4 MB, free: 14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.0949, allocations: 0 / 443.4 MB, free: 14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.09491, allocations: 0 / 443.4 MB, free: 14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.09492, allocations: 8 kB / 443.4 MB, free: 14 MB / 298.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.0003568/0.09528, allocations: 363.2 kB / 443.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.09533, allocations: 12.03 kB / 443.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.831e-05/0.09537, allocations: 38.73 kB / 443.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.0954, allocations: 16.72 kB / 443.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.09558, allocations: 208 kB / 444 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.09559, allocations: 384 / 444 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.09561, allocations: 8.375 kB / 444.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.09592, allocations: 182.8 kB / 444.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.09594, allocations: 4 kB / 444.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.09595, allocations: 0 / 444.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.914e-06/0.09597, allocations: 0 / 444.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.09607, allocations: 43.92 kB / 444.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002626/0.09634, allocations: 295.3 kB / 444.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.09657, allocations: 207.6 kB / 444.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.09668, allocations: 75.41 kB / 444.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.09671, allocations: 3.984 kB / 444.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.09673, allocations: 38.56 kB / 444.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.09674, allocations: 3.938 kB / 444.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003035/0.09704, allocations: 145.5 kB / 445 MB, free: 12.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.09711, allocations: 136.7 kB / 445.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.077e-05/0.09718, allocations: 132.3 kB / 445.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.0972, allocations: 25.7 kB / 445.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.09724, allocations: 96.08 kB / 445.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.09726, allocations: 15.89 kB / 445.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.09729, allocations: 13.88 kB / 445.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.674e-05/0.09735, allocations: 326.8 kB / 445.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.835e-05/0.09741, allocations: 23.92 kB / 445.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.234e-05/0.09748, allocations: 85.44 kB / 445.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.0976, allocations: 109.3 kB / 446 MB, free: 11.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09761, allocations: 0 / 446 MB, free: 11.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001663/0.09779, allocations: 125.3 kB / 446.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.09781, allocations: 8 kB / 446.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.09782, allocations: 0 / 446.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.09784, allocations: 7.984 kB / 446.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.6e-05/0.09793, allocations: 32.27 kB / 446.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.09794, allocations: 4 kB / 446.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.615e-05/0.098, allocations: 8 kB / 446.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.09802, allocations: 4.25 kB / 446.2 MB, free: 10.86 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.09809, allocations: 125.8 kB / 446.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.09821, allocations: 101.4 kB / 446.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.09825, allocations: 12.31 kB / 446.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.09826, allocations: 0 / 446.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.09827, allocations: 8.031 kB / 446.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.09827, allocations: 3.984 kB / 446.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.09842, allocations: 189.5 kB / 446.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09843, allocations: 3.938 kB / 446.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.09853, allocations: 23.98 kB / 446.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.09854, allocations: 0 / 446.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-06/0.09856, allocations: 4 kB / 446.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.09856, allocations: 0 / 446.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.09857, allocations: 0 / 446.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.09876, allocations: 233.9 kB / 446.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.866e-05/0.0988, allocations: 85.02 kB / 446.9 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.09882, allocations: 4 kB / 446.9 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.378e-05/0.0989, allocations: 11.98 kB / 446.9 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.747e-05/0.09894, allocations: 4 kB / 446.9 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.09895, allocations: 4 kB / 447 MB, free: 9.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.119e-05/0.09899, allocations: 102.2 kB / 447.1 MB, free: 9.855 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.099, allocations: 0 / 447.1 MB, free: 9.855 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002271/0.09923, allocations: 16 kB / 447.1 MB, free: 9.84 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003276/0.09956, allocations: 0.7657 MB / 447.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001489/0.09972, allocations: 72.41 kB / 447.9 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.09973, allocations: 4 kB / 447.9 MB, free: 8.965 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.244e-05/0.09977, allocations: 11.98 kB / 447.9 MB, free: 8.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.1002, allocations: 55.92 kB / 448 MB, free: 8.898 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.1013, allocations: 1.64 MB / 449.6 MB, free: 7.094 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.1015, allocations: 0.7004 MB / 450.3 MB, free: 6.367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.1015, allocations: 8.547 kB / 450.3 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.4e-05/0.1015, allocations: 31.42 kB / 450.4 MB, free: 6.332 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1016, allocations: 0 / 450.4 MB, free: 6.332 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01057/0.1121, allocations: 2.098 MB / 452.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.1123, allocations: 217.2 kB / 452.7 MB, free: 3.969 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.721, allocations: 0 / 452.7 MB, free: 3.969 MB / 298.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)