Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test11.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.Test11,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test11",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test11,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test11",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.008429/0.008429, allocations: 1.36 MB / 16.61 MB, free: 5.156 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.536e-05, allocations: 0 / 23.76 MB, free: 3.719 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005792/0.000615, allocations: 363.5 kB / 24.11 MB, free: 3.375 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test11): time 0.001577/0.002203, allocations: 1.559 MB / 25.67 MB, free: 1.816 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.003822, allocations: 0.8959 MB / 26.57 MB, free: 0.9219 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/0.004092, allocations: 7.938 kB / 26.58 MB, free: 0.9141 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.004421, allocations: 116.4 kB / 26.69 MB, free: 0.8008 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0008761/0.005309, allocations: 317 kB / 27 MB, free: 0.4922 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001453/0.005468, allocations: 51.95 kB / 27.05 MB, free: 452 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0005981/0.006078, allocations: 0.5881 MB / 27.64 MB, free: 4.496 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004672/0.006557, allocations: 297.5 kB / 27.93 MB, free: 4.191 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.006874, allocations: 226.5 kB / 28.15 MB, free: 3.969 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003394/0.007227, allocations: 262.2 kB / 28.41 MB, free: 3.711 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 7.791e-05/0.007317, allocations: 20 kB / 28.42 MB, free: 3.691 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004851/0.007815, allocations: 219.7 kB / 28.64 MB, free: 3.477 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.008028, allocations: 155.3 kB / 28.79 MB, free: 3.324 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0003001/0.008341, allocations: 266 kB / 29.05 MB, free: 3.062 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.009379, allocations: 0.7827 MB / 29.83 MB, free: 2.277 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.009397, allocations: 0 / 29.83 MB, free: 2.277 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.453e-06/0.009409, allocations: 4 kB / 29.84 MB, free: 2.273 MB / 18.57 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.009424, allocations: 0 / 29.84 MB, free: 2.273 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.001194/0.01063, allocations: 0.8384 MB / 30.68 MB, free: 1.375 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.01068, allocations: 16.31 kB / 30.69 MB, free: 1.359 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001462/0.01083, allocations: 147.5 kB / 30.84 MB, free: 1.207 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.01097, allocations: 83.98 kB / 30.92 MB, free: 1.125 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004958/0.01147, allocations: 423.9 kB / 31.33 MB, free: 0.6719 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-05/0.01155, allocations: 66.36 kB / 31.4 MB, free: 0.6055 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.01165, allocations: 88.36 kB / 31.48 MB, free: 0.5195 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007154/0.01882, allocations: 1.23 MB / 32.71 MB, free: 6.555 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.01886, allocations: 0 / 32.71 MB, free: 6.555 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.01893, allocations: 37.88 kB / 32.75 MB, free: 6.555 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.18e-05/0.01902, allocations: 76.03 kB / 32.82 MB, free: 6.555 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.02009, allocations: 0.8797 MB / 33.7 MB, free: 6.469 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.0224, allocations: 2.431 MB / 36.13 MB, free: 4.516 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006521/0.02307, allocations: 0.5768 MB / 36.71 MB, free: 3.91 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/0.02346, allocations: 377.4 kB / 37.08 MB, free: 3.539 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004912/0.02396, allocations: 1.028 MB / 38.11 MB, free: 2.293 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.02399, allocations: 38.89 kB / 38.15 MB, free: 2.246 MB / 18.57 MB Notification: Performance of pre-optimization done (n=43): time 1.883e-06/0.02399, allocations: 0 / 38.15 MB, free: 2.246 MB / 18.57 MB Notification: Performance of matching and sorting (n=43): time 0.002608/0.02661, allocations: 1.436 MB / 39.58 MB, free: 0.7773 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.02668, allocations: 211.8 kB / 39.79 MB, free: 0.5273 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.0269, allocations: 326.1 kB / 40.11 MB, free: 208 kB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.02694, allocations: 37.7 kB / 40.14 MB, free: 164 kB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.004922/0.03186, allocations: 327.7 kB / 40.46 MB, free: 5.953 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.032, allocations: 141.4 kB / 40.6 MB, free: 5.871 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.274e-05/0.0321, allocations: 84.53 kB / 40.68 MB, free: 5.855 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.769e-05/0.03216, allocations: 345.3 kB / 41.02 MB, free: 5.543 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.03261, allocations: 318.8 kB / 41.33 MB, free: 5.543 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004632/0.03308, allocations: 454.5 kB / 41.78 MB, free: 5.398 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007339/0.03383, allocations: 0.7769 MB / 42.55 MB, free: 5.152 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.03384, allocations: 3.797 kB / 42.56 MB, free: 5.152 MB / 18.57 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00129/0.03514, allocations: 1.076 MB / 43.63 MB, free: 4.852 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.0352, allocations: 83.19 kB / 43.71 MB, free: 4.766 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.03521, allocations: 4.75 kB / 43.72 MB, free: 4.762 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.03679, allocations: 439.2 kB / 44.15 MB, free: 4.367 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.037, allocations: 71.84 kB / 44.22 MB, free: 4.297 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004894/0.0375, allocations: 0.7859 MB / 45 MB, free: 3.492 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.03774, allocations: 94.56 kB / 45.1 MB, free: 3.402 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/0.0378, allocations: 37.08 kB / 45.13 MB, free: 3.367 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 26 ('P1'.emptying,$PRE.'P1'.fireOut[1],'P3'.feeding,$PRE.'P3'.fireIn[1],'P2'.outTransition[1].arcType,'P1'.outTransition[1].arcType,'T1'.activation.fed[1],'T2'.activation.emptied[1],'T2'.activation.arcType[1],'T1'.activation.arcType[1],'P3'.fireIn[1],'T2'.activation.weaklyOutputActiveVec[1],'T2'.activation.weaklyInputActiveVec[1],'T2'.activation.active,'T2'.activation.fed[1],'P2'.fireOut[1],$PRE.'P2'.fireOut[1],'P2'.fireIn[1],$PRE.'P2'.fireIn[1],'T1'.activation.weaklyOutputActiveVec[1],'T1'.activation.weaklyInputActiveVec[1],'T1'.activation.active,'T1'.activation.emptied[1],'P1'.fireOut[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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003082/0.03812, allocations: 391.7 kB / 45.52 MB, free: 2.969 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.03819, allocations: 39.38 kB / 45.55 MB, free: 2.934 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.03955, allocations: 1.048 MB / 46.6 MB, free: 1.875 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.03958, allocations: 12 kB / 46.61 MB, free: 1.863 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.0396, allocations: 5.297 kB / 46.62 MB, free: 1.859 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.03961, allocations: 3.938 kB / 46.62 MB, free: 1.855 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006642/0.04625, allocations: 1.666 MB / 48.29 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.04628, allocations: 1.219 kB / 48.29 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.04644, allocations: 46.38 kB / 48.33 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008321/0.04729, allocations: 339.6 kB / 48.67 MB, free: 5.141 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.04734, allocations: 25.27 kB / 48.69 MB, free: 5.141 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004899/0.04783, allocations: 0.802 MB / 49.49 MB, free: 4.625 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.04784, allocations: 3.75 kB / 49.5 MB, free: 4.625 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.04948, allocations: 1.422 MB / 50.92 MB, free: 4.367 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.04953, allocations: 126 kB / 51.04 MB, free: 4.262 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.0496, allocations: 18.62 kB / 51.06 MB, free: 4.254 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.04981, allocations: 47.61 kB / 51.11 MB, free: 4.223 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.05, allocations: 117 kB / 51.22 MB, free: 4.172 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.05005, allocations: 24.73 kB / 51.24 MB, free: 4.156 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001218/0.05018, allocations: 202 kB / 51.44 MB, free: 4.02 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.4e-07/0.05019, allocations: 0 / 51.44 MB, free: 4.02 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004537/0.05064, allocations: 234.4 kB / 51.67 MB, free: 3.852 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001857/0.05251, allocations: 2.078 MB / 53.75 MB, free: 1.832 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.05356, allocations: 0.9747 MB / 54.72 MB, free: 0.8555 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.05357, allocations: 2.406 kB / 54.73 MB, free: 0.8555 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.005627/0.0592, allocations: 0.5551 MB / 55.28 MB, free: 4.895 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.0596, allocations: 58.42 kB / 55.34 MB, free: 4.891 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005653/0.06526, allocations: 5.912 MB / 61.25 MB, free: 1.43 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.06564, allocations: 1.015 MB / 62.27 MB, free: 6.777 MB / 24.96 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.06589, allocations: 127.1 kB / 62.39 MB, free: 6.664 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.06608, allocations: 215.9 kB / 62.6 MB, free: 6.461 MB / 24.96 MB Notification: Performance of SimCode: time 9.41e-07/0.06609, allocations: 0 / 62.6 MB, free: 6.461 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04455/0.1106, allocations: 12.37 MB / 74.97 MB, free: 6.301 MB / 24.96 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.1108, allocations: 196.4 kB / 75.16 MB, free: 6.051 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.329, allocations: 64 / 75.16 MB, free: 6.051 MB / 24.96 MB (rm -f ConPNlib_ConPNlib.Examples.Test11.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test11.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test11.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test11.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test11_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test11.fmu > ConPNlib_ConPNlib.Examples.Test11.pipe 2>&1)