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.0134/0.0134, allocations: 1.33 MB / 13.89 MB, free: 1.414 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.944e-05/1.953e-05, allocations: 0 / 19.32 MB, free: 1.895 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0008649/0.0009307, allocations: 368.8 kB / 19.68 MB, free: 1.551 MB / 13.93 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.02287/0.02384, allocations: 4.016 MB / 23.7 MB, free: 2.281 MB / 13.93 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001758/0.02408, allocations: 48.05 kB / 23.75 MB, free: 2.262 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 0.05741/0.08152, allocations: 10.95 MB / 34.69 MB, free: 2.445 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.483e-06/0.08156, allocations: 0 / 34.69 MB, free: 2.445 MB / 18.57 MB Notification: Performance of Transformations before backend: time 3.99e-05/0.08162, allocations: 16.47 kB / 34.71 MB, free: 2.445 MB / 18.57 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.001509/0.08313, allocations: 0.8641 MB / 35.57 MB, free: 1.863 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.0832, allocations: 8.156 kB / 35.58 MB, free: 1.863 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002366/0.08344, allocations: 143.4 kB / 35.72 MB, free: 1.824 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.08364, allocations: 86.14 kB / 35.81 MB, free: 1.785 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009026/0.08455, allocations: 449 kB / 36.24 MB, free: 1.547 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.701e-05/0.08464, allocations: 69.48 kB / 36.31 MB, free: 1.547 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001741/0.08482, allocations: 92.34 kB / 36.4 MB, free: 1.547 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.08723, allocations: 1.139 MB / 37.54 MB, free: 1.434 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.08729, allocations: 0 / 37.54 MB, free: 1.434 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.08742, allocations: 44.67 kB / 37.58 MB, free: 1.43 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.08756, allocations: 59.86 kB / 37.64 MB, free: 1.43 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.08929, allocations: 0.7706 MB / 38.41 MB, free: 0.8672 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01802/0.1073, allocations: 2.008 MB / 40.42 MB, free: 1 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009421/0.1083, allocations: 0.5474 MB / 40.97 MB, free: 0.7852 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006078/0.109, allocations: 308 kB / 41.27 MB, free: 0.7773 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007743/0.1097, allocations: 0.6044 MB / 41.87 MB, free: 6.332 MB / 24.79 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.1098, allocations: 38.91 kB / 41.91 MB, free: 6.293 MB / 24.79 MB Notification: Performance of pre-optimization done (n=40): time 3.947e-06/0.1098, allocations: 3.719 kB / 41.92 MB, free: 6.293 MB / 24.79 MB Notification: Performance of matching and sorting (n=40): time 0.001323/0.1111, allocations: 0.5615 MB / 42.48 MB, free: 6.188 MB / 24.79 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.1113, allocations: 208.4 kB / 42.68 MB, free: 5.969 MB / 24.79 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.1118, allocations: 301.6 kB / 42.98 MB, free: 5.855 MB / 24.79 MB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.1119, allocations: 38.23 kB / 43.01 MB, free: 5.824 MB / 24.79 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002836/0.1122, allocations: 349.9 kB / 43.35 MB, free: 5.641 MB / 24.79 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.1123, allocations: 130.6 kB / 43.48 MB, free: 5.574 MB / 24.79 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.1124, allocations: 15.33 kB / 43.5 MB, free: 5.574 MB / 24.79 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1126, allocations: 346.8 kB / 43.84 MB, free: 5.262 MB / 24.79 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006271/0.1132, allocations: 259 kB / 44.09 MB, free: 5.262 MB / 24.79 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007312/0.114, allocations: 444 kB / 44.52 MB, free: 5.055 MB / 24.79 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000633/0.1146, allocations: 343.8 kB / 44.86 MB, free: 4.988 MB / 24.79 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.138e-06/0.1146, allocations: 10.7 kB / 44.87 MB, free: 4.984 MB / 24.79 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001655/0.1163, allocations: 0.7914 MB / 45.66 MB, free: 4.859 MB / 24.79 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.1164, allocations: 86.42 kB / 45.74 MB, free: 4.797 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.1165, allocations: 8.906 kB / 45.75 MB, free: 4.797 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.1165, allocations: 8.406 kB / 45.76 MB, free: 4.797 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.117, allocations: 89.3 kB / 45.85 MB, free: 4.797 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.887e-05/0.1171, allocations: 16.94 kB / 45.86 MB, free: 4.797 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/0.1176, allocations: 74.17 kB / 45.94 MB, free: 4.781 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.1177, allocations: 44.97 kB / 45.98 MB, free: 4.781 MB / 24.79 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.0003396/0.118, allocations: 248.8 kB / 46.22 MB, free: 4.609 MB / 24.79 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1181, allocations: 44.59 kB / 46.27 MB, free: 4.586 MB / 24.79 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.1198, allocations: 0.6809 MB / 46.95 MB, free: 4.336 MB / 24.79 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.771e-05/0.1199, allocations: 7.25 kB / 46.96 MB, free: 4.336 MB / 24.79 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1199, allocations: 0 / 46.96 MB, free: 4.336 MB / 24.79 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.1199, allocations: 2.734 kB / 46.96 MB, free: 4.336 MB / 24.79 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.1226, allocations: 1.323 MB / 48.28 MB, free: 3.418 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1226, allocations: 0 / 48.28 MB, free: 3.418 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.1231, allocations: 61.17 kB / 48.34 MB, free: 3.367 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.1231, allocations: 0 / 48.34 MB, free: 3.367 MB / 24.79 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.878e-05/0.1232, allocations: 25.62 kB / 48.37 MB, free: 3.348 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1232, allocations: 0 / 48.37 MB, free: 3.348 MB / 24.79 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1232, allocations: 4 kB / 48.37 MB, free: 3.344 MB / 24.79 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.1256, allocations: 1.021 MB / 49.39 MB, free: 2.406 MB / 24.79 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.1257, allocations: 115.8 kB / 49.5 MB, free: 2.277 MB / 24.79 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.1259, allocations: 24.2 kB / 49.53 MB, free: 2.258 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004175/0.1263, allocations: 46.27 kB / 49.57 MB, free: 2.223 MB / 24.79 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.1267, allocations: 113.7 kB / 49.68 MB, free: 2.145 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.693e-05/0.1268, allocations: 27.34 kB / 49.71 MB, free: 2.125 MB / 24.79 MB Notification: Performance of sorting global known variables: time 0.0003144/0.1271, allocations: 199.9 kB / 49.91 MB, free: 1.945 MB / 24.79 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1271, allocations: 0 / 49.91 MB, free: 1.945 MB / 24.79 MB Notification: Performance of remove unused functions: time 0.0009732/0.1281, allocations: 228.1 kB / 50.13 MB, free: 1.742 MB / 24.79 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.003207/0.1313, allocations: 1.73 MB / 51.86 MB, free: 136 kB / 24.79 MB Notification: Performance of simCode: created initialization part: time 0.01776/0.1491, allocations: 0.8757 MB / 52.73 MB, free: 6.742 MB / 24.79 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.1492, allocations: 0.6562 kB / 52.73 MB, free: 6.742 MB / 24.79 MB Notification: Performance of simCode: created simulation system equations: time 0.0008612/0.1501, allocations: 486.9 kB / 53.21 MB, free: 6.617 MB / 24.79 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.1505, allocations: 43.88 kB / 53.25 MB, free: 6.617 MB / 24.79 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003149/0.1537, allocations: 1.297 MB / 54.55 MB, free: 6.332 MB / 24.79 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006137/0.1543, allocations: 1.026 MB / 55.58 MB, free: 5.633 MB / 24.79 MB Notification: Performance of simCode: alias equations: time 0.0005871/0.1549, allocations: 144.3 kB / 55.72 MB, free: 5.625 MB / 24.79 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004272/0.1554, allocations: 230.6 kB / 55.94 MB, free: 5.621 MB / 24.79 MB Notification: Performance of SimCode: time 9.01e-07/0.1554, allocations: 0 / 55.94 MB, free: 5.621 MB / 24.79 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05486/0.2103, allocations: 10.84 MB / 66.78 MB, free: 5.664 MB / 24.79 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.2106, allocations: 119.8 kB / 66.9 MB, free: 5.469 MB / 24.79 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.869/3.079, allocations: 0 / 66.9 MB, free: 5.469 MB / 24.79 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)