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.0009433/0.0009436, allocations: 177.1 kB / 15.82 MB, free: 6.305 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.697/1.697, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007838/0.0007838, allocations: 98.34 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07029/0.07029, allocations: 12.59 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004413/0.0004413, allocations: 17.27 kB / 392.1 MB, free: 54.81 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08923, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample): time 0.00152/0.0908, allocations: 1.382 MB / 443.9 MB, free: 9.469 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006397/0.09147, allocations: 0.5039 MB / 444.4 MB, free: 8.957 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.026e-05/0.09156, allocations: 7.938 kB / 444.4 MB, free: 8.949 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 2.199e-05/0.09159, allocations: 7.922 kB / 444.4 MB, free: 8.941 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 6.908e-05/0.09166, allocations: 3.938 kB / 444.4 MB, free: 8.938 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.09194, allocations: 39.91 kB / 444.4 MB, free: 8.898 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 8.012e-05/0.09203, allocations: 59.78 kB / 444.5 MB, free: 8.84 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 9.603e-05/0.09213, allocations: 39.89 kB / 444.5 MB, free: 8.801 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 6.837e-05/0.09221, allocations: 23.81 kB / 444.6 MB, free: 8.777 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.601e-05/0.09227, allocations: 23.86 kB / 444.6 MB, free: 8.754 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.09229, allocations: 0 / 444.6 MB, free: 8.754 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.266e-05/0.09231, allocations: 4 kB / 444.6 MB, free: 8.75 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.09233, allocations: 15.91 kB / 444.6 MB, free: 8.734 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.44e-05/0.09236, allocations: 37.64 kB / 444.6 MB, free: 8.691 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 7.409e-05/0.09244, allocations: 40.48 kB / 444.7 MB, free: 8.652 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.09245, allocations: 0 / 444.7 MB, free: 8.652 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.415e-06/0.09246, allocations: 8 kB / 444.7 MB, free: 8.645 MB / 282.8 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.09248, allocations: 0 / 444.7 MB, free: 8.645 MB / 282.8 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.0004465/0.09293, allocations: 371.3 kB / 445.1 MB, free: 8.234 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.09299, allocations: 8.031 kB / 445.1 MB, free: 8.227 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.501e-05/0.09303, allocations: 42.48 kB / 445.1 MB, free: 8.176 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.296e-05/0.09307, allocations: 11.91 kB / 445.1 MB, free: 8.164 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.09326, allocations: 210.8 kB / 445.3 MB, free: 7.918 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.09328, allocations: 4 kB / 445.3 MB, free: 7.914 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.0933, allocations: 15.98 kB / 445.3 MB, free: 7.898 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.09367, allocations: 168.8 kB / 445.5 MB, free: 7.711 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.09369, allocations: 7.938 kB / 445.5 MB, free: 7.703 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.09371, allocations: 0 / 445.5 MB, free: 7.703 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.09372, allocations: 4 kB / 445.5 MB, free: 7.699 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.09386, allocations: 35.98 kB / 445.6 MB, free: 7.664 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003053/0.09417, allocations: 303.3 kB / 445.9 MB, free: 7.309 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.09444, allocations: 207.6 kB / 446.1 MB, free: 7.051 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.09456, allocations: 67.41 kB / 446.1 MB, free: 6.973 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.0946, allocations: 7.938 kB / 446.1 MB, free: 6.965 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.09462, allocations: 38.5 kB / 446.2 MB, free: 6.918 MB / 282.8 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.09463, allocations: 0 / 446.2 MB, free: 6.918 MB / 282.8 MB Notification: Performance of matching and sorting (n=11): time 0.0003645/0.095, allocations: 145.5 kB / 446.3 MB, free: 6.77 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.09507, allocations: 136.5 kB / 446.4 MB, free: 6.605 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.335e-05/0.09516, allocations: 132.6 kB / 446.6 MB, free: 6.469 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.09518, allocations: 33.7 kB / 446.6 MB, free: 6.43 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.09522, allocations: 88.3 kB / 446.7 MB, free: 6.34 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.09524, allocations: 19.89 kB / 446.7 MB, free: 6.32 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.09525, allocations: 0 / 446.7 MB, free: 6.32 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 5.045e-05/0.09531, allocations: 326.8 kB / 447 MB, free: 5.992 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.625e-05/0.09537, allocations: 12 kB / 447 MB, free: 5.98 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.246e-05/0.09545, allocations: 89.36 kB / 447.1 MB, free: 5.859 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.071e-05/0.09553, allocations: 28 kB / 447.2 MB, free: 5.832 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.09554, allocations: 4 kB / 447.2 MB, free: 5.828 MB / 282.8 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001979/0.09575, allocations: 129.6 kB / 447.3 MB, free: 5.695 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.09578, allocations: 4 kB / 447.3 MB, free: 5.691 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.09579, allocations: 4 kB / 447.3 MB, free: 5.688 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.09581, allocations: 4 kB / 447.3 MB, free: 5.684 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.09593, allocations: 23.92 kB / 447.3 MB, free: 5.66 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.09594, allocations: 4 kB / 447.3 MB, free: 5.656 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.035e-05/0.09602, allocations: 11.94 kB / 447.3 MB, free: 5.645 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.09604, allocations: 4 kB / 447.3 MB, free: 5.641 MB / 282.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/0.09611, allocations: 137.5 kB / 447.5 MB, free: 5.496 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.09624, allocations: 93.69 kB / 447.6 MB, free: 5.398 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.84e-05/0.09629, allocations: 16.36 kB / 447.6 MB, free: 5.379 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.0963, allocations: 8.234 kB / 447.6 MB, free: 5.371 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.09631, allocations: 0 / 447.6 MB, free: 5.371 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.09632, allocations: 7.922 kB / 447.6 MB, free: 5.363 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.09647, allocations: 185.5 kB / 447.8 MB, free: 5.133 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.09648, allocations: 0 / 447.8 MB, free: 5.133 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.09659, allocations: 19.98 kB / 447.8 MB, free: 5.113 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.09661, allocations: 4.031 kB / 447.8 MB, free: 5.109 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.09662, allocations: 8 kB / 447.8 MB, free: 5.102 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.09663, allocations: 3.984 kB / 447.8 MB, free: 5.098 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.09664, allocations: 4 kB / 447.8 MB, free: 5.094 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/0.09687, allocations: 226.1 kB / 448 MB, free: 4.848 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.09691, allocations: 85.02 kB / 448.1 MB, free: 4.746 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.09694, allocations: 7.984 kB / 448.1 MB, free: 4.738 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.09704, allocations: 4 kB / 448.1 MB, free: 4.734 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.09708, allocations: 0 / 448.1 MB, free: 4.734 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.0971, allocations: 8 kB / 448.1 MB, free: 4.727 MB / 282.8 MB Notification: Performance of sorting global known variables: time 4.889e-05/0.09715, allocations: 99.17 kB / 448.2 MB, free: 4.629 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09716, allocations: 0 / 448.2 MB, free: 4.629 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002723/0.09744, allocations: 19.98 kB / 448.3 MB, free: 4.609 MB / 282.8 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 (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.0004305/0.09787, allocations: 0.7694 MB / 449 MB, free: 3.805 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.09808, allocations: 71.83 kB / 449.1 MB, free: 3.734 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0981, allocations: 0 / 449.1 MB, free: 3.734 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 4.408e-05/0.09815, allocations: 8.688 kB / 449.1 MB, free: 3.727 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.09863, allocations: 60.12 kB / 449.2 MB, free: 3.668 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.09959, allocations: 0.6685 MB / 449.8 MB, free: 2.91 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.09974, allocations: 0.7004 MB / 450.5 MB, free: 2.184 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 7.62e-05/0.09983, allocations: 12.55 kB / 450.5 MB, free: 2.168 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.684e-05/0.09989, allocations: 27.44 kB / 450.6 MB, free: 2.141 MB / 282.8 MB Notification: Performance of SimCode: time 2.61e-07/0.0999, allocations: 0 / 450.6 MB, free: 2.141 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01212/0.112, allocations: 2.063 MB / 452.6 MB, free: 92 kB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.1123, allocations: 194 kB / 452.8 MB, free: 15.86 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.535/1.648, allocations: 0 / 452.8 MB, free: 15.86 MB / 298.8 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)