Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test10.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.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005532/0.005532, allocations: 1.362 MB / 16.61 MB, free: 5.156 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.823e-05/1.816e-05, allocations: 0 / 23.76 MB, free: 3.719 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005253/0.0005656, allocations: 365.2 kB / 24.11 MB, free: 3.375 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test10): time 0.001607/0.002183, allocations: 1.96 MB / 26.07 MB, free: 1.414 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.003682, allocations: 1.013 MB / 27.09 MB, free: 412 kB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.003916, allocations: 9.188 kB / 27.09 MB, free: 404 kB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.004243, allocations: 139 kB / 27.23 MB, free: 264 kB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0007887/0.005042, allocations: 372.7 kB / 27.59 MB, free: 4.539 MB / 18.57 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001301/0.005183, allocations: 59.95 kB / 27.65 MB, free: 4.48 MB / 18.57 MB Notification: Performance of NFFlatten.flatten: time 0.0005962/0.005788, allocations: 0.7277 MB / 28.38 MB, free: 3.75 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.006248, allocations: 433.2 kB / 28.8 MB, free: 3.309 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.006495, allocations: 286.1 kB / 29.08 MB, free: 3.027 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.006788, allocations: 317.7 kB / 29.39 MB, free: 2.715 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.006863, allocations: 28 kB / 29.42 MB, free: 2.688 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.007211, allocations: 231.6 kB / 29.65 MB, free: 2.461 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.007384, allocations: 183.1 kB / 29.83 MB, free: 2.281 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.007632, allocations: 345.3 kB / 30.16 MB, free: 1.941 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0007892/0.008428, allocations: 0.9657 MB / 31.13 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.008441, allocations: 0 / 31.13 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.172e-06/0.008448, allocations: 0 / 31.13 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.008461, allocations: 0 / 31.13 MB, free: 0.9727 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.005754/0.01422, allocations: 1.001 MB / 32.13 MB, free: 7.262 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.01426, allocations: 8.906 kB / 32.14 MB, free: 7.262 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000299/0.01457, allocations: 184.4 kB / 32.32 MB, free: 7.219 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.01472, allocations: 108.1 kB / 32.42 MB, free: 7.168 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.01522, allocations: 0.501 MB / 32.92 MB, free: 6.891 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.982e-05/0.01527, allocations: 88.73 kB / 33.01 MB, free: 6.887 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.01538, allocations: 115.5 kB / 33.12 MB, free: 6.887 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.01714, allocations: 1.596 MB / 34.72 MB, free: 5.98 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.01718, allocations: 3.938 kB / 34.72 MB, free: 5.977 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.01725, allocations: 51.44 kB / 34.77 MB, free: 5.93 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.936e-05/0.01736, allocations: 102.8 kB / 34.87 MB, free: 5.828 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.01862, allocations: 1.125 MB / 36 MB, free: 4.699 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.02167, allocations: 3.479 MB / 39.48 MB, free: 1.043 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.02293, allocations: 0.6698 MB / 40.15 MB, free: 348 kB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008634/0.03158, allocations: 438.6 kB / 40.58 MB, free: 6.281 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004916/0.03211, allocations: 0.5995 MB / 41.18 MB, free: 5.625 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.03216, allocations: 44.69 kB / 41.22 MB, free: 5.586 MB / 18.57 MB Notification: Performance of pre-optimization done (n=51): time 4.017e-06/0.03217, allocations: 0.9375 kB / 41.22 MB, free: 5.586 MB / 18.57 MB Notification: Performance of matching and sorting (n=51): time 0.002463/0.03464, allocations: 1.099 MB / 42.32 MB, free: 5.48 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/0.03475, allocations: 266.7 kB / 42.58 MB, free: 5.195 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.03532, allocations: 428.2 kB / 43 MB, free: 5.059 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.03539, allocations: 41.55 kB / 43.04 MB, free: 5.02 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.0357, allocations: 456.3 kB / 43.48 MB, free: 4.711 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.03585, allocations: 164.4 kB / 43.64 MB, free: 4.594 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.036, allocations: 110.1 kB / 43.75 MB, free: 4.547 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.681e-05/0.03608, allocations: 356.2 kB / 44.1 MB, free: 4.215 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006751/0.03677, allocations: 381.8 kB / 44.47 MB, free: 4.109 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008476/0.03763, allocations: 0.594 MB / 45.07 MB, free: 3.727 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.03904, allocations: 0.9651 MB / 46.03 MB, free: 2.672 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.03906, allocations: 0 / 46.03 MB, free: 2.672 MB / 18.57 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002053/0.04113, allocations: 1.129 MB / 47.16 MB, free: 1.531 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/0.04122, allocations: 91.38 kB / 47.25 MB, free: 1.43 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.04125, allocations: 5.484 kB / 47.26 MB, free: 1.426 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.04128, allocations: 9.406 kB / 47.27 MB, free: 1.418 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004392/0.04173, allocations: 124.3 kB / 47.39 MB, free: 1.297 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.04176, allocations: 12 kB / 47.4 MB, free: 1.285 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.0422, allocations: 119.2 kB / 47.51 MB, free: 1.168 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.004e-05/0.0423, allocations: 47.97 kB / 47.56 MB, free: 1.121 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 35 (P1.emptying,$PRE.P1.fireOut[1],P2.emptying,$PRE.P2.fireOut[2],$PRE.P2.fireOut[1],P3.feeding,$PRE.P3.fireIn[1],P4.feeding,$PRE.P4.fireIn[1],IA1.outTransition.arcType,P2.outTransition[1].arcType,P1.outTransition[1].arcType,T1.activation.fed[1],T1.activation.fed[2],T1.activation.emptied[1],T2.activation.emptied[1],T1.activation.arcType[2],T2.activation.arcType[1],T1.activation.arcType[1],P4.fireIn[1],P3.fireIn[1],T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T2.activation.fed[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P2.fireOut[2],P2.fireOut[1],P1.fireOut[1],T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces,P2.outTransition[2].arcType) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 81 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000585/0.0429, allocations: 449.1 kB / 48 MB, free: 0.6641 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.04303, allocations: 55.23 kB / 48.05 MB, free: 0.6133 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009872/0.05292, allocations: 0.9359 MB / 48.99 MB, free: 5.359 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-05/0.05299, allocations: 16.75 kB / 49.01 MB, free: 5.359 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.05301, allocations: 0.5312 kB / 49.01 MB, free: 5.359 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.05303, allocations: 3.969 kB / 49.01 MB, free: 5.359 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.05585, allocations: 1.749 MB / 50.76 MB, free: 4.91 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.05587, allocations: 3.906 kB / 50.76 MB, free: 4.91 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.05627, allocations: 74.77 kB / 50.84 MB, free: 4.906 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.0563, allocations: 3.281 kB / 50.84 MB, free: 4.906 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.753e-05/0.05637, allocations: 27.47 kB / 50.87 MB, free: 4.898 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.05638, allocations: 3.844 kB / 50.87 MB, free: 4.898 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.05639, allocations: 0 / 50.87 MB, free: 4.898 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.05888, allocations: 1.414 MB / 52.28 MB, free: 4.191 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 7.362e-05/0.05897, allocations: 116.3 kB / 52.4 MB, free: 4.086 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.0591, allocations: 31.5 kB / 52.43 MB, free: 4.059 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003362/0.05944, allocations: 55.36 kB / 52.48 MB, free: 4.008 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.05972, allocations: 134.3 kB / 52.61 MB, free: 3.879 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.333e-05/0.05979, allocations: 27.98 kB / 52.64 MB, free: 3.852 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0002524/0.06005, allocations: 251.2 kB / 52.89 MB, free: 3.605 MB / 18.57 MB Notification: Performance of sort global known variables: time 6.11e-07/0.06006, allocations: 0 / 52.89 MB, free: 3.605 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0009298/0.061, allocations: 291.2 kB / 53.17 MB, free: 3.363 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (P1.t_,P2.t_,P3.t_,P4.t_) * Number of discrete variables: 17 (P1.fireOut[1],P1.emptying,P2.fireOut[1],P2.fireOut[2],P2.emptying,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding,P4.fireIn[1],P4.feeding) * Number of discrete states: 12 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P2.fireOut[1],P2.fireOut[2],P3.fireIn[1],P4.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 44 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002792/0.06381, allocations: 2.066 MB / 55.24 MB, free: 1.301 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.009097/0.07292, allocations: 1.122 MB / 56.36 MB, free: 5.074 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.07295, allocations: 0 / 56.36 MB, free: 5.074 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0008265/0.07378, allocations: 0.616 MB / 56.98 MB, free: 4.945 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/0.07446, allocations: 75.66 kB / 57.05 MB, free: 4.945 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01939/0.09388, allocations: 7.048 MB / 64.1 MB, free: 4.266 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008307/0.09474, allocations: 1.12 MB / 65.22 MB, free: 9.957 MB / 24.96 MB Notification: Performance of simCode: alias equations: time 0.0008477/0.0956, allocations: 255.1 kB / 65.47 MB, free: 9.953 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005699/0.09619, allocations: 329.1 kB / 65.79 MB, free: 9.953 MB / 24.96 MB Notification: Performance of SimCode: time 7.61e-07/0.09621, allocations: 3.75 kB / 65.79 MB, free: 9.953 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04261/0.1388, allocations: 13.06 MB / 78.85 MB, free: 9.234 MB / 24.96 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.1391, allocations: 165 kB / 79.01 MB, free: 8.98 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.385, allocations: 0 / 79.01 MB, free: 8.98 MB / 24.96 MB (rm -f ConPNlib_ConPNlib.Examples.Test10.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test10.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test10.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test10.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test10_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test10.fmu > ConPNlib_ConPNlib.Examples.Test10.pipe 2>&1)