Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test8.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: "" <> buildModelFMU(ConPNlib.Examples.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01259/0.01259, allocations: 1.335 MB / 8.813 MB, free: 244 kB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 3.175e-05/3.184e-05, allocations: 2.75 kB / 13.23 MB, free: 2.285 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001156/0.001248, allocations: 357 kB / 13.58 MB, free: 2.254 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.008548/0.009882, allocations: 3.354 MB / 16.93 MB, free: 1.793 MB / 10.45 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.01017, allocations: 47.98 kB / 16.98 MB, free: 1.746 MB / 10.45 MB Notification: Performance of FrontEnd - DAE generated: time 0.08885/0.09905, allocations: 10.84 MB / 27.82 MB, free: 3.984 MB / 14.12 MB Notification: Performance of FrontEnd: time 2.524e-06/0.09912, allocations: 0 / 27.82 MB, free: 3.984 MB / 14.12 MB Notification: Performance of Transformations before backend: time 5.777e-05/0.0992, allocations: 13.83 kB / 27.83 MB, free: 3.984 MB / 14.12 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002464/0.1017, allocations: 0.8719 MB / 28.71 MB, free: 3.203 MB / 14.12 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.1018, allocations: 8.656 kB / 28.72 MB, free: 3.195 MB / 14.12 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004977/0.1023, allocations: 83.16 kB / 28.8 MB, free: 3.117 MB / 14.12 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.1041, allocations: 452.8 kB / 29.24 MB, free: 2.676 MB / 14.12 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.1043, allocations: 30.64 kB / 29.27 MB, free: 2.648 MB / 14.12 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003801/0.1047, allocations: 52.34 kB / 29.32 MB, free: 2.598 MB / 14.12 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003459/0.1082, allocations: 0.744 MB / 30.06 MB, free: 1.855 MB / 14.12 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004461/0.1127, allocations: 1.016 MB / 31.08 MB, free: 0.8203 MB / 14.12 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/0.1128, allocations: 4 kB / 31.08 MB, free: 0.8164 MB / 14.12 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001533/0.113, allocations: 3.953 kB / 31.09 MB, free: 0.8125 MB / 14.12 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002599/0.1133, allocations: 58.95 kB / 31.14 MB, free: 0.7539 MB / 14.12 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02099/0.1343, allocations: 1.838 MB / 32.98 MB, free: 2.559 MB / 14.12 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.1358, allocations: 0.5318 MB / 33.51 MB, free: 2.344 MB / 14.12 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009193/0.1367, allocations: 289.9 kB / 33.8 MB, free: 2.336 MB / 14.12 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000852/0.1376, allocations: 0.6095 MB / 34.41 MB, free: 1.68 MB / 14.12 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.1377, allocations: 41.8 kB / 34.45 MB, free: 1.637 MB / 14.12 MB Notification: Performance of pre-optimization done (n=40): time 5.531e-06/0.1377, allocations: 0 / 34.45 MB, free: 1.637 MB / 14.12 MB Notification: Performance of matching and sorting (n=40): time 0.002265/0.14, allocations: 485.6 kB / 34.92 MB, free: 1.586 MB / 14.12 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.1402, allocations: 213.3 kB / 35.13 MB, free: 1.367 MB / 14.12 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.1407, allocations: 246.3 kB / 35.37 MB, free: 1.258 MB / 14.12 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.1409, allocations: 37.08 kB / 35.41 MB, free: 1.227 MB / 14.12 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/0.1413, allocations: 354.4 kB / 35.75 MB, free: 1.008 MB / 14.12 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.1415, allocations: 123.5 kB / 35.87 MB, free: 0.918 MB / 14.12 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.661e-05/0.1416, allocations: 2.469 kB / 35.88 MB, free: 0.918 MB / 14.12 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1417, allocations: 345.1 kB / 36.21 MB, free: 0.5898 MB / 14.12 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008221/0.1426, allocations: 245.2 kB / 36.45 MB, free: 0.5117 MB / 14.12 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.1436, allocations: 431.5 kB / 36.87 MB, free: 204 kB / 14.12 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.145, allocations: 265.4 kB / 37.13 MB, free: 128 kB / 14.12 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.8e-05/0.1451, allocations: 2.938 kB / 37.14 MB, free: 128 kB / 14.12 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0186/0.1637, allocations: 0.67 MB / 37.81 MB, free: 2.387 MB / 14.12 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001998/0.164, allocations: 88.34 kB / 37.89 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.164, allocations: 3.344 kB / 37.9 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.835e-05/0.1641, allocations: 14.27 kB / 37.91 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008333/0.165, allocations: 90.86 kB / 38 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.326e-05/0.165, allocations: 12.33 kB / 38.01 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/0.1659, allocations: 64.03 kB / 38.07 MB, free: 2.324 MB / 14.12 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/0.1661, allocations: 43.86 kB / 38.12 MB, free: 2.324 MB / 14.12 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.P1.fireOut[1],$PRE.P1.fireOut[2],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P1.feeding,P1.outTransition[2].arcType,P1.outTransition[1].arcType,P3.emptying,P2.emptying,P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T1.activation.emptied[1],T2.activation.emptied[1],T1.activation.arcType[1],T2.activation.arcType[1],T1.activation.fed[1],T2.activation.fed[1],T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 63 * Array equations: 3 * Algorithm blocks: 2 * 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.0004576/0.1666, allocations: 238.4 kB / 38.35 MB, free: 2.152 MB / 14.12 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002239/0.1688, allocations: 0.4938 MB / 38.84 MB, free: 2.117 MB / 14.12 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.1691, allocations: 36.28 kB / 38.88 MB, free: 2.117 MB / 14.12 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.1717, allocations: 0.5742 MB / 39.45 MB, free: 2.082 MB / 14.12 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.278e-05/0.1718, allocations: 7.719 kB / 39.46 MB, free: 2.082 MB / 14.12 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/0.1719, allocations: 3.562 kB / 39.46 MB, free: 2.082 MB / 14.12 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.1719, allocations: 6.266 kB / 39.47 MB, free: 2.082 MB / 14.12 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003861/0.1758, allocations: 1.088 MB / 40.56 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-05/0.1759, allocations: 3.688 kB / 40.56 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007104/0.1766, allocations: 60.89 kB / 40.62 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.618e-05/0.1767, allocations: 1.938 kB / 40.62 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.1768, allocations: 19.89 kB / 40.64 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.1769, allocations: 3.594 kB / 40.64 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.1769, allocations: 0 / 40.64 MB, free: 1.805 MB / 14.12 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.1802, allocations: 0.9202 MB / 41.56 MB, free: 1.102 MB / 14.12 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1804, allocations: 107.2 kB / 41.67 MB, free: 1 MB / 14.12 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.1806, allocations: 16 kB / 41.68 MB, free: 0.9844 MB / 14.12 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.1813, allocations: 40.17 kB / 41.72 MB, free: 0.957 MB / 14.12 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00049/0.1818, allocations: 115 kB / 41.84 MB, free: 0.8789 MB / 14.12 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.182, allocations: 30.42 kB / 41.87 MB, free: 0.8555 MB / 14.12 MB Notification: Performance of sorting global known variables: time 0.0002524/0.1823, allocations: 158.2 kB / 42.02 MB, free: 0.7109 MB / 14.12 MB Notification: Performance of sort global known variables: time 7.31e-07/0.1823, allocations: 3.094 kB / 42.02 MB, free: 0.7109 MB / 14.12 MB Notification: Performance of remove unused functions: time 0.001531/0.1838, allocations: 224.1 kB / 42.24 MB, free: 0.5234 MB / 14.12 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 13 (P1.fireOut[1],P1.fireOut[2],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (P3.fireIn[1],P2.fireIn[1],P1.fireOut[1],P1.fireOut[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 3 * Algorithm blocks: 2 * 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.006499/0.1904, allocations: 1.658 MB / 43.9 MB, free: 3.918 MB / 18.83 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.1937, allocations: 0.8213 MB / 44.72 MB, free: 3.141 MB / 18.83 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/0.1938, allocations: 0 / 44.72 MB, free: 3.141 MB / 18.83 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.1953, allocations: 473.4 kB / 45.18 MB, free: 2.691 MB / 18.83 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.1962, allocations: 37.88 kB / 45.22 MB, free: 2.656 MB / 18.83 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005956/0.2022, allocations: 1.259 MB / 46.48 MB, free: 1.414 MB / 18.83 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.2036, allocations: 1.023 MB / 47.5 MB, free: 376 kB / 18.83 MB Notification: Performance of simCode: alias equations: time 0.001115/0.2048, allocations: 140.2 kB / 47.64 MB, free: 232 kB / 18.83 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007878/0.2056, allocations: 227.3 kB / 47.86 MB, free: 8 kB / 18.83 MB Notification: Performance of SimCode: time 1.773e-06/0.2056, allocations: 0 / 47.86 MB, free: 8 kB / 18.83 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09392/0.2996, allocations: 10.17 MB / 58.03 MB, free: 4.105 MB / 18.83 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002659/0.2999, allocations: 99.56 kB / 58.13 MB, free: 4.012 MB / 18.83 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/3.224, allocations: 0 / 58.13 MB, free: 4.012 MB / 18.83 MB (rm -f ConPNlib_ConPNlib.Examples.Test8.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test8.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test8.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test8.fmu > ConPNlib_ConPNlib.Examples.Test8.pipe 2>&1)