Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test12.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.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01675/0.01675, allocations: 1.359 MB / 16.31 MB, free: 5.34 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.035e-05/2.037e-05, allocations: 0 / 23.32 MB, free: 3.992 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009641/0.001034, allocations: 353.9 kB / 23.67 MB, free: 3.832 MB / 13.93 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.008252/0.009316, allocations: 4.12 MB / 27.79 MB, free: 4.488 MB / 18.57 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.009621, allocations: 49.3 kB / 27.84 MB, free: 4.441 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 0.07904/0.08869, allocations: 12.84 MB / 40.68 MB, free: 0.5938 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.883e-06/0.08874, allocations: 0 / 40.68 MB, free: 0.5938 MB / 18.57 MB Notification: Performance of Transformations before backend: time 4.238e-05/0.08879, allocations: 19.94 kB / 40.7 MB, free: 0.5742 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.01628/0.1051, allocations: 1.007 MB / 41.71 MB, free: 6.727 MB / 24.81 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1051, allocations: 9.234 kB / 41.72 MB, free: 6.727 MB / 24.81 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004616/0.1056, allocations: 177.6 kB / 41.89 MB, free: 6.684 MB / 24.81 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.1059, allocations: 98.36 kB / 41.99 MB, free: 6.637 MB / 24.81 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.107, allocations: 0.5083 MB / 42.5 MB, free: 6.422 MB / 24.81 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.197e-05/0.1071, allocations: 82.92 kB / 42.58 MB, free: 6.418 MB / 24.81 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002147/0.1073, allocations: 114.7 kB / 42.69 MB, free: 6.414 MB / 24.81 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003247/0.1105, allocations: 1.438 MB / 44.13 MB, free: 6.273 MB / 24.81 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/0.1106, allocations: 0 / 44.13 MB, free: 6.273 MB / 24.81 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.1108, allocations: 48.5 kB / 44.17 MB, free: 6.27 MB / 24.81 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.1109, allocations: 71.47 kB / 44.24 MB, free: 6.266 MB / 24.81 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.1135, allocations: 1.019 MB / 45.26 MB, free: 6.254 MB / 24.81 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005421/0.1189, allocations: 2.512 MB / 47.78 MB, free: 5.102 MB / 24.81 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.1206, allocations: 0.7375 MB / 48.51 MB, free: 4.613 MB / 24.81 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/0.1217, allocations: 0.8667 MB / 49.38 MB, free: 3.598 MB / 24.81 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.1218, allocations: 38.03 kB / 49.42 MB, free: 3.555 MB / 24.81 MB Notification: Performance of pre-optimization done (n=52): time 3.376e-06/0.1218, allocations: 4 kB / 49.42 MB, free: 3.551 MB / 24.81 MB Notification: Performance of matching and sorting (n=52): time 0.006221/0.128, allocations: 1.767 MB / 51.19 MB, free: 1.949 MB / 24.81 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/0.1282, allocations: 247.8 kB / 51.43 MB, free: 1.664 MB / 24.81 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005733/0.1288, allocations: 329.4 kB / 51.75 MB, free: 1.383 MB / 24.81 MB Notification: Performance of collectPreVariables (initialization): time 9.125e-05/0.1289, allocations: 37.7 kB / 51.79 MB, free: 1.34 MB / 24.81 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004117/0.1294, allocations: 400.5 kB / 52.18 MB, free: 0.9922 MB / 24.81 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002538/0.1296, allocations: 152.2 kB / 52.33 MB, free: 0.8594 MB / 24.81 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.1297, allocations: 21.02 kB / 52.35 MB, free: 0.8398 MB / 24.81 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1299, allocations: 361.5 kB / 52.7 MB, free: 0.4922 MB / 24.81 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.131, allocations: 353.6 kB / 53.05 MB, free: 212 kB / 24.81 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01745/0.1484, allocations: 0.5721 MB / 53.62 MB, free: 5.633 MB / 24.81 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.1496, allocations: 461.5 kB / 54.07 MB, free: 5.531 MB / 24.81 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.1496, allocations: 0 / 54.07 MB, free: 5.531 MB / 24.81 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002783/0.1524, allocations: 1.148 MB / 55.22 MB, free: 5.387 MB / 24.81 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.1526, allocations: 121.1 kB / 55.34 MB, free: 5.293 MB / 24.81 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.1526, allocations: 8.125 kB / 55.34 MB, free: 5.293 MB / 24.81 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003047/0.1557, allocations: 424.6 kB / 55.76 MB, free: 5.285 MB / 24.81 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.1562, allocations: 86.67 kB / 55.84 MB, free: 5.285 MB / 24.81 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.1572, allocations: 0.8692 MB / 56.71 MB, free: 4.766 MB / 24.81 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006213/0.1579, allocations: 90.08 kB / 56.8 MB, free: 4.766 MB / 24.81 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.158, allocations: 51.61 kB / 56.85 MB, free: 4.766 MB / 24.81 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P2.emptying,P3.emptying,P1.outTransition[2].arcType,P1.outTransition[1].arcType,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],$PRE.P1.fireIn[1],P1.fireIn[1],$PRE.P1.fireOut[1],P1.fireOut[1],$PRE.P1.fireOut[2],P1.fireOut[2],P2.fireIn[1],P3.fireIn[1],T2.activation.arcType[1],T3.activation.arcType[1],T3.activation.emptied[1],T2.activation.emptied[1],T2.outPlaces[1].enabledByInPlaces,T3.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007668/0.1588, allocations: 472.4 kB / 57.31 MB, free: 4.547 MB / 24.81 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.1589, allocations: 42.44 kB / 57.35 MB, free: 4.547 MB / 24.81 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.1618, allocations: 1.129 MB / 58.48 MB, free: 4.398 MB / 24.81 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.324e-05/0.1619, allocations: 16.89 kB / 58.5 MB, free: 4.398 MB / 24.81 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1619, allocations: 0.75 kB / 58.5 MB, free: 4.398 MB / 24.81 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.1619, allocations: 2.578 kB / 58.5 MB, free: 4.398 MB / 24.81 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.1657, allocations: 1.834 MB / 60.34 MB, free: 3.738 MB / 24.81 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.1657, allocations: 0 / 60.34 MB, free: 3.738 MB / 24.81 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.1661, allocations: 58.81 kB / 60.39 MB, free: 3.691 MB / 24.81 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002572/0.1687, allocations: 409.6 kB / 60.79 MB, free: 3.391 MB / 24.81 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/0.1689, allocations: 22.7 kB / 60.82 MB, free: 3.375 MB / 24.81 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.17, allocations: 0.8967 MB / 61.71 MB, free: 2.531 MB / 24.81 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.17, allocations: 5.281 kB / 61.72 MB, free: 2.527 MB / 24.81 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.1734, allocations: 1.567 MB / 63.28 MB, free: 1.156 MB / 24.81 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.1736, allocations: 117.6 kB / 63.4 MB, free: 1.051 MB / 24.81 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.1738, allocations: 31.42 kB / 63.43 MB, free: 1.023 MB / 24.81 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/0.1742, allocations: 54.78 kB / 63.48 MB, free: 0.9805 MB / 24.81 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/0.1746, allocations: 147.6 kB / 63.63 MB, free: 0.8828 MB / 24.81 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.1747, allocations: 40.06 kB / 63.67 MB, free: 0.8555 MB / 24.81 MB Notification: Performance of sorting global known variables: time 0.0002851/0.175, allocations: 215.1 kB / 63.88 MB, free: 0.6758 MB / 24.81 MB Notification: Performance of sort global known variables: time 4.1e-07/0.175, allocations: 0 / 63.88 MB, free: 0.6758 MB / 24.81 MB Notification: Performance of remove unused functions: time 0.01692/0.192, allocations: 265.8 kB / 64.14 MB, free: 5.539 MB / 24.81 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: 18 (T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P2.feeding,P3.fireIn[1],P3.feeding) * Number of discrete states: 13 (P3.fireIn[1],P2.fireIn[1],P1.fireOut[1],P1.fireOut[2],P1.fireIn[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004437/0.1965, allocations: 2.277 MB / 66.41 MB, free: 4.781 MB / 24.81 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.1989, allocations: 1.174 MB / 67.59 MB, free: 4.582 MB / 24.81 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.199, allocations: 3.625 kB / 67.59 MB, free: 4.582 MB / 24.81 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.2002, allocations: 0.6871 MB / 68.28 MB, free: 4.391 MB / 24.81 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.2006, allocations: 54.33 kB / 68.33 MB, free: 4.387 MB / 24.81 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02652/0.2272, allocations: 7.597 MB / 75.93 MB, free: 5.012 MB / 24.81 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006824/0.2279, allocations: 1.108 MB / 77.04 MB, free: 4.312 MB / 24.81 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.2284, allocations: 115.7 kB / 77.15 MB, free: 4.305 MB / 24.81 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/0.2288, allocations: 260.8 kB / 77.4 MB, free: 4.305 MB / 24.81 MB Notification: Performance of SimCode: time 1.022e-06/0.2288, allocations: 0 / 77.4 MB, free: 4.305 MB / 24.81 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06391/0.2927, allocations: 14.72 MB / 92.12 MB, free: 0.6484 MB / 24.81 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.293, allocations: 164.2 kB / 92.28 MB, free: 424 kB / 24.81 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/3.156, allocations: 3.938 kB / 92.29 MB, free: 420 kB / 24.81 MB (rm -f ConPNlib_ConPNlib.Examples.Test12.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test12.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test12.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test12.fmu > ConPNlib_ConPNlib.Examples.Test12.pipe 2>&1)