Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test4.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.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01343/0.01343, allocations: 1.33 MB / 13.89 MB, free: 1.41 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.075e-05/2.093e-05, allocations: 0 / 19.33 MB, free: 2 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0008985/0.0009662, allocations: 363.6 kB / 19.68 MB, free: 1.664 MB / 13.93 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.02244/0.02346, allocations: 4.011 MB / 23.69 MB, free: 2.797 MB / 13.93 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.0237, allocations: 48.86 kB / 23.74 MB, free: 2.777 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 0.07427/0.098, allocations: 9.189 MB / 32.93 MB, free: 2.457 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.886e-06/0.09805, allocations: 0 / 32.93 MB, free: 2.457 MB / 18.57 MB Notification: Performance of Transformations before backend: time 5.387e-05/0.09812, allocations: 11.53 kB / 32.94 MB, free: 2.457 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002118/0.1003, allocations: 0.7587 MB / 33.7 MB, free: 1.938 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/0.1003, allocations: 12.55 kB / 33.71 MB, free: 1.938 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004141/0.1008, allocations: 120.6 kB / 33.83 MB, free: 1.898 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.1011, allocations: 65.14 kB / 33.9 MB, free: 1.867 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.1023, allocations: 388.5 kB / 34.27 MB, free: 1.645 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1025, allocations: 55.11 kB / 34.33 MB, free: 1.641 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003054/0.1028, allocations: 71.55 kB / 34.4 MB, free: 1.641 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003342/0.1062, allocations: 0.8849 MB / 35.28 MB, free: 1.555 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.1063, allocations: 0 / 35.28 MB, free: 1.555 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.1064, allocations: 36.05 kB / 35.32 MB, free: 1.551 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001854/0.1066, allocations: 42 kB / 35.36 MB, free: 1.551 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.1092, allocations: 0.5934 MB / 35.95 MB, free: 1.543 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1149, allocations: 1.585 MB / 37.54 MB, free: 0.9414 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.1162, allocations: 422.9 kB / 37.95 MB, free: 0.7031 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008388/0.1171, allocations: 252.5 kB / 38.2 MB, free: 0.6055 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01958/0.1367, allocations: 0.8564 MB / 39.05 MB, free: 1.844 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.1368, allocations: 35.03 kB / 39.09 MB, free: 1.805 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 4.95e-06/0.1368, allocations: 0.5625 kB / 39.09 MB, free: 1.805 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002367/0.1392, allocations: 0.5633 MB / 39.65 MB, free: 1.691 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1394, allocations: 184.5 kB / 39.83 MB, free: 1.504 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/0.14, allocations: 240 kB / 40.07 MB, free: 1.41 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/0.1401, allocations: 36.34 kB / 40.1 MB, free: 1.379 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003559/0.1405, allocations: 281.2 kB / 40.38 MB, free: 1.234 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.1407, allocations: 113 kB / 40.49 MB, free: 1.172 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.706e-05/0.1408, allocations: 14.19 kB / 40.5 MB, free: 1.172 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.141, allocations: 336.5 kB / 40.83 MB, free: 0.8594 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008625/0.1419, allocations: 215.6 kB / 41.04 MB, free: 0.8594 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000958/0.1429, allocations: 330.4 kB / 41.36 MB, free: 0.7266 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009116/0.1438, allocations: 292.4 kB / 41.65 MB, free: 0.6562 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.469e-05/0.1439, allocations: 0 / 41.65 MB, free: 0.6562 MB / 18.57 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.002601/0.1465, allocations: 0.7038 MB / 42.35 MB, free: 0.5391 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001468/0.1467, allocations: 79.73 kB / 42.43 MB, free: 488 kB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.1467, allocations: 3.594 kB / 42.43 MB, free: 488 kB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002824/0.1496, allocations: 271.7 kB / 42.7 MB, free: 480 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005317/0.1501, allocations: 55.06 kB / 42.75 MB, free: 480 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.1516, allocations: 0.7501 MB / 43.5 MB, free: 6.172 MB / 24.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/0.1524, allocations: 59.62 kB / 43.56 MB, free: 6.156 MB / 24.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.1526, allocations: 31.7 kB / 43.59 MB, free: 6.156 MB / 24.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.P1.fireOut[1],P1.emptying,P2.outTransition[1].arcType,P1.feeding,P1.outTransition[1].arcType,P1.fireOut[1],T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],$PRE.P2.fireIn[1],P2.fireIn[1],$PRE.P2.fireOut[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T1.activation.arcType[1],T1.activation.fed[1],T2.activation.arcType[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000488/0.1531, allocations: 234.8 kB / 43.82 MB, free: 5.984 MB / 24.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.1533, allocations: 25.28 kB / 43.85 MB, free: 5.973 MB / 24.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002795/0.1561, allocations: 0.7235 MB / 44.57 MB, free: 5.84 MB / 24.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.813e-05/0.1563, allocations: 6.406 kB / 44.58 MB, free: 5.84 MB / 24.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1563, allocations: 0 / 44.58 MB, free: 5.84 MB / 24.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.1563, allocations: 5.625 kB / 44.58 MB, free: 5.84 MB / 24.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003955/0.1603, allocations: 1.21 MB / 45.79 MB, free: 5.281 MB / 24.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.1604, allocations: 0 / 45.79 MB, free: 5.281 MB / 24.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.1608, allocations: 31.14 kB / 45.82 MB, free: 5.258 MB / 24.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002345/0.1632, allocations: 283.8 kB / 46.1 MB, free: 5.043 MB / 24.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001702/0.1634, allocations: 17.3 kB / 46.12 MB, free: 5.031 MB / 24.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.1651, allocations: 0.7785 MB / 46.89 MB, free: 4.289 MB / 24.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.1651, allocations: 0.5 kB / 46.89 MB, free: 4.289 MB / 24.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003715/0.1689, allocations: 0.9784 MB / 47.87 MB, free: 3.383 MB / 24.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.1691, allocations: 100.8 kB / 47.97 MB, free: 3.266 MB / 24.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.1693, allocations: 20.38 kB / 47.99 MB, free: 3.25 MB / 24.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.1699, allocations: 41.11 kB / 48.03 MB, free: 3.219 MB / 24.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000445/0.1704, allocations: 93.69 kB / 48.12 MB, free: 3.156 MB / 24.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.1706, allocations: 27.5 kB / 48.15 MB, free: 3.137 MB / 24.8 MB Notification: Performance of sorting global known variables: time 0.0004/0.171, allocations: 168.5 kB / 48.31 MB, free: 2.98 MB / 24.8 MB Notification: Performance of sort global known variables: time 1.022e-06/0.171, allocations: 0 / 48.31 MB, free: 2.98 MB / 24.8 MB Notification: Performance of remove unused functions: time 0.001557/0.1726, allocations: 197 kB / 48.51 MB, free: 2.809 MB / 24.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 11 (P1.fireOut[1],P1.emptying,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],P2.fireIn[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1]) * Number of discrete states: 8 (P2.fireOut[1],P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00521/0.1778, allocations: 1.667 MB / 50.17 MB, free: 1.242 MB / 24.8 MB Notification: Performance of simCode: created initialization part: time 0.002918/0.1808, allocations: 0.7154 MB / 50.89 MB, free: 0.5664 MB / 24.8 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.1809, allocations: 0.875 kB / 50.89 MB, free: 0.5664 MB / 24.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.1824, allocations: 440.7 kB / 51.32 MB, free: 152 kB / 24.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.1831, allocations: 38.38 kB / 51.36 MB, free: 120 kB / 24.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02351/0.2067, allocations: 1.098 MB / 52.46 MB, free: 6.918 MB / 24.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.2072, allocations: 0.9499 MB / 53.41 MB, free: 6.223 MB / 24.8 MB Notification: Performance of simCode: alias equations: time 0.0003388/0.2076, allocations: 74.22 kB / 53.48 MB, free: 6.219 MB / 24.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.2079, allocations: 164.3 kB / 53.64 MB, free: 6.211 MB / 24.8 MB Notification: Performance of SimCode: time 1.222e-06/0.2079, allocations: 0 / 53.64 MB, free: 6.211 MB / 24.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05506/0.2629, allocations: 10.27 MB / 63.91 MB, free: 5.43 MB / 24.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002485/0.2633, allocations: 144.1 kB / 64.05 MB, free: 5.207 MB / 24.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.88/3.143, allocations: 7.656 kB / 64.06 MB, free: 5.203 MB / 24.8 MB (rm -f ConPNlib_ConPNlib.Examples.Test4.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test4.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test4.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test4_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test4.fmu > ConPNlib_ConPNlib.Examples.Test4.pipe 2>&1)