Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample,fileNamePrefix="Modelica_Synchronous_cpp_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.0008806/0.0008806, allocations: 178.6 kB / 16.77 MB, free: 4.922 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.123/1.123, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0006759/0.0006759, allocations: 81 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05643/0.05643, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004635/0.0004635, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06095/0.06143, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample): time 0.001254/0.06272, allocations: 1.385 MB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005185/0.06326, allocations: 496 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.263e-05/0.06333, allocations: 7.938 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.06335, allocations: 7.922 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.424e-05/0.06342, allocations: 7.922 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.06364, allocations: 43.89 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.48e-05/0.06373, allocations: 63.72 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.48e-05/0.06382, allocations: 28 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.2e-05/0.06389, allocations: 31.84 kB / 444.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.759e-05/0.06394, allocations: 23.86 kB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.06396, allocations: 0 / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.06398, allocations: 4 kB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.064, allocations: 15.92 kB / 444.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.36e-05/0.06404, allocations: 53.45 kB / 444.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.987e-05/0.0641, allocations: 48.19 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.06411, allocations: 0 / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.06412, allocations: 4 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.055e-06/0.06412, allocations: 0 / 444.7 MB, free: 14.33 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.0003105/0.06444, allocations: 375.1 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.06448, allocations: 12.03 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.509e-05/0.06451, allocations: 38.73 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.124e-05/0.06453, allocations: 8.844 kB / 445.1 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.06467, allocations: 216.6 kB / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.06469, allocations: 8.375 kB / 445.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.0647, allocations: 4.375 kB / 445.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.06497, allocations: 186.7 kB / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.06498, allocations: 0 / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.065, allocations: 8 kB / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.06501, allocations: 0 / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.146e-05/0.06511, allocations: 43.91 kB / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.06534, allocations: 291.4 kB / 445.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.06553, allocations: 207.5 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.09e-05/0.06562, allocations: 75.45 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.06565, allocations: 0 / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.136e-05/0.06567, allocations: 34.56 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.06567, allocations: 4 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002659/0.06594, allocations: 145.4 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.06599, allocations: 136.5 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.952e-05/0.06605, allocations: 132 kB / 446.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.06607, allocations: 29.7 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.685e-05/0.0661, allocations: 100.1 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.06611, allocations: 11.84 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.06612, allocations: 4 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.705e-05/0.06616, allocations: 322.8 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.225e-05/0.06621, allocations: 15.98 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.441e-05/0.06627, allocations: 89.38 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.06638, allocations: 117.2 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.06639, allocations: 0 / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001506/0.06654, allocations: 117.7 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.06656, allocations: 12.03 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.06657, allocations: 0 / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.06659, allocations: 4 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.766e-05/0.06667, allocations: 31.92 kB / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.06668, allocations: 4 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.317e-05/0.06674, allocations: 4.25 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.06675, allocations: 7.938 kB / 447.4 MB, free: 11.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.06681, allocations: 137.5 kB / 447.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.06691, allocations: 93.53 kB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.06695, allocations: 12.31 kB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.06696, allocations: 3.984 kB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.06696, allocations: 4 kB / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.06697, allocations: 0 / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.06709, allocations: 189.4 kB / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.0671, allocations: 0 / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.969e-05/0.06718, allocations: 23.98 kB / 447.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.06719, allocations: 0 / 447.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.06721, allocations: 12.03 kB / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.06721, allocations: 0 / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.06722, allocations: 7.922 kB / 447.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.06739, allocations: 225.9 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/0.06742, allocations: 89.02 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.06744, allocations: 3.984 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.06751, allocations: 4 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.343e-05/0.06754, allocations: 0 / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.06755, allocations: 8 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.06759, allocations: 101.9 kB / 448.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0676, allocations: 0 / 448.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.06782, allocations: 12 kB / 448.3 MB, free: 10.19 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 (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.0002849/0.06811, allocations: 0.7615 MB / 449.1 MB, free: 9.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001364/0.06826, allocations: 75.84 kB / 449.2 MB, free: 9.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.06827, allocations: 0 / 449.2 MB, free: 9.316 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.362e-05/0.06831, allocations: 19.92 kB / 449.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.06867, allocations: 48.73 kB / 449.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007464/0.06943, allocations: 0.7017 MB / 449.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.309e-05/0.06953, allocations: 0.7004 MB / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.06958, allocations: 27.61 kB / 450.7 MB, free: 7.699 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.06959, allocations: 4 kB / 450.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.338/2.408, allocations: 1.461 MB / 452.1 MB, free: 6.234 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe 2>&1)