Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test9.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.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01984/0.01985, allocations: 1.358 MB / 16.31 MB, free: 5.352 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.755e-05/1.766e-05, allocations: 0 / 23.31 MB, free: 3.996 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007194/0.000777, allocations: 359.3 kB / 23.66 MB, free: 3.828 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test9): time 0.00181/0.002603, allocations: 1.463 MB / 25.13 MB, free: 2.512 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.004743, allocations: 0.8512 MB / 25.98 MB, free: 1.664 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004011/0.005197, allocations: 8.438 kB / 25.99 MB, free: 1.656 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.005576, allocations: 134 kB / 26.12 MB, free: 1.527 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.006876, allocations: 323.1 kB / 26.43 MB, free: 1.211 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.007212, allocations: 59.92 kB / 26.49 MB, free: 1.152 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0006436/0.00787, allocations: 395.1 kB / 26.88 MB, free: 0.7656 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004322/0.00832, allocations: 257.3 kB / 27.13 MB, free: 0.4922 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.008597, allocations: 210.8 kB / 27.33 MB, free: 292 kB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.008883, allocations: 242.6 kB / 27.57 MB, free: 48 kB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 7.096e-05/0.008969, allocations: 20 kB / 27.59 MB, free: 28 kB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005415/0.009521, allocations: 191.7 kB / 27.78 MB, free: 4.484 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.009737, allocations: 131.5 kB / 27.91 MB, free: 4.355 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.009914, allocations: 117.3 kB / 28.02 MB, free: 4.234 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.01105, allocations: 0.6122 MB / 28.63 MB, free: 3.621 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.01108, allocations: 0 / 28.63 MB, free: 3.621 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.495e-06/0.01109, allocations: 0 / 28.63 MB, free: 3.621 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.01111, allocations: 0 / 28.63 MB, free: 3.621 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.001532/0.01265, allocations: 0.8456 MB / 29.48 MB, free: 2.715 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.01271, allocations: 8.297 kB / 29.49 MB, free: 2.707 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002542/0.01298, allocations: 141.4 kB / 29.62 MB, free: 2.562 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.01319, allocations: 87.92 kB / 29.71 MB, free: 2.477 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008503/0.01405, allocations: 423.9 kB / 30.12 MB, free: 2.023 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.01417, allocations: 66.33 kB / 30.19 MB, free: 1.957 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.01438, allocations: 92.08 kB / 30.28 MB, free: 1.871 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003514/0.01791, allocations: 1.211 MB / 31.49 MB, free: 0.6367 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.01798, allocations: 352 / 31.49 MB, free: 0.6367 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.01812, allocations: 47.88 kB / 31.54 MB, free: 0.5898 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000221/0.01835, allocations: 77.94 kB / 31.61 MB, free: 0.5117 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01945/0.03782, allocations: 0.8686 MB / 32.48 MB, free: 7.539 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006675/0.04455, allocations: 2.42 MB / 34.9 MB, free: 5.996 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.04659, allocations: 0.6508 MB / 35.55 MB, free: 5.465 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000699/0.04735, allocations: 0.6054 MB / 36.16 MB, free: 4.734 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.04741, allocations: 30.88 kB / 36.19 MB, free: 4.695 MB / 18.57 MB Notification: Performance of pre-optimization done (n=42): time 5.34e-06/0.04743, allocations: 0 / 36.19 MB, free: 4.695 MB / 18.57 MB Notification: Performance of matching and sorting (n=42): time 0.006552/0.05399, allocations: 1.566 MB / 37.75 MB, free: 3.062 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.05417, allocations: 220.2 kB / 37.97 MB, free: 2.805 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005449/0.05474, allocations: 310.2 kB / 38.27 MB, free: 2.492 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-05/0.05484, allocations: 41.69 kB / 38.31 MB, free: 2.445 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.05514, allocations: 337.3 kB / 38.64 MB, free: 2.121 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.05534, allocations: 136.1 kB / 38.77 MB, free: 1.992 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.05543, allocations: 16 kB / 38.79 MB, free: 1.977 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.05554, allocations: 342.8 kB / 39.13 MB, free: 1.633 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009798/0.05654, allocations: 316.9 kB / 39.43 MB, free: 1.324 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.05766, allocations: 453.3 kB / 39.88 MB, free: 0.8203 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.05872, allocations: 376 kB / 40.24 MB, free: 452 kB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/0.05875, allocations: 0 / 40.24 MB, free: 452 kB / 18.57 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.02086/0.07963, allocations: 1.067 MB / 41.31 MB, free: 6.078 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001566/0.07984, allocations: 87.73 kB / 41.4 MB, free: 6.016 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.07988, allocations: 3.812 kB / 41.4 MB, free: 6.016 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005188/0.08508, allocations: 433.4 kB / 41.82 MB, free: 6.008 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.08578, allocations: 78.92 kB / 41.9 MB, free: 6.008 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.08724, allocations: 0.7713 MB / 42.67 MB, free: 5.492 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/0.08808, allocations: 90.8 kB / 42.76 MB, free: 5.492 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.08825, allocations: 32.58 kB / 42.79 MB, free: 5.492 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P3.fireIn[1],P3.feeding,P2.outTransition[1].arcType,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],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T1.activation.arcType[1],T2.activation.arcType[1],T2.activation.emptied[1],T1.activation.fed[1],T2.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 (56): * Single equations (assignments): 53 * 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 {3 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009561/0.08922, allocations: 397 kB / 43.18 MB, free: 5.312 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.08942, allocations: 36.97 kB / 43.22 MB, free: 5.312 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.09298, allocations: 0.9863 MB / 44.2 MB, free: 4.598 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.407e-05/0.0931, allocations: 15.98 kB / 44.22 MB, free: 4.582 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.09313, allocations: 10.67 kB / 44.23 MB, free: 4.578 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.09315, allocations: 0 / 44.23 MB, free: 4.578 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/0.09786, allocations: 1.655 MB / 45.88 MB, free: 2.879 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.09791, allocations: 0 / 45.88 MB, free: 2.879 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/0.09839, allocations: 39.92 kB / 45.92 MB, free: 2.84 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/0.1009, allocations: 340.5 kB / 46.26 MB, free: 2.504 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.1011, allocations: 19.95 kB / 46.28 MB, free: 2.484 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.1025, allocations: 0.8061 MB / 47.08 MB, free: 1.672 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.1026, allocations: 0 / 47.08 MB, free: 1.672 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02024/0.1228, allocations: 1.399 MB / 48.48 MB, free: 6.027 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.123, allocations: 114.7 kB / 48.59 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.1231, allocations: 25.67 kB / 48.62 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.1235, allocations: 47.03 kB / 48.66 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.1239, allocations: 110.1 kB / 48.77 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.124, allocations: 24.45 kB / 48.79 MB, free: 5.934 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0002468/0.1242, allocations: 194.8 kB / 48.98 MB, free: 5.855 MB / 18.57 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1243, allocations: 0.5 kB / 48.99 MB, free: 5.855 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0008478/0.1251, allocations: 240.5 kB / 49.22 MB, free: 5.844 MB / 18.57 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: 14 (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],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (P1.fireOut[1],P2.fireIn[1],T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P2.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P3.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003637/0.1288, allocations: 2.07 MB / 51.29 MB, free: 4.867 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.1309, allocations: 0.9633 MB / 52.25 MB, free: 4.043 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1309, allocations: 0 / 52.25 MB, free: 4.043 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.1319, allocations: 0.5489 MB / 52.8 MB, free: 3.52 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.1324, allocations: 41.03 kB / 52.84 MB, free: 3.48 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/0.1527, allocations: 5.761 MB / 58.6 MB, free: 4.434 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/0.1535, allocations: 1.032 MB / 59.64 MB, free: 10.09 MB / 24.96 MB Notification: Performance of simCode: alias equations: time 0.0004348/0.1539, allocations: 125.1 kB / 59.76 MB, free: 10.09 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.1543, allocations: 225.1 kB / 59.98 MB, free: 9.922 MB / 24.96 MB Notification: Performance of SimCode: time 9.21e-07/0.1543, allocations: 2.25 kB / 59.98 MB, free: 9.922 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05645/0.2107, allocations: 12.5 MB / 72.48 MB, free: 9.789 MB / 24.96 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/0.211, allocations: 173.3 kB / 72.65 MB, free: 9.547 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.777/2.988, allocations: 0 / 72.65 MB, free: 9.547 MB / 24.96 MB (rm -f ConPNlib_ConPNlib.Examples.Test9.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test9.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test9.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test9.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test9_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test9.fmu > ConPNlib_ConPNlib.Examples.Test9.pipe 2>&1)