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.006087/0.006087, allocations: 1.366 MB / 16.64 MB, free: 5.168 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.829e-05, allocations: 0 / 23.8 MB, free: 3.66 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005992/0.0006419, allocations: 364.8 kB / 24.16 MB, free: 3.316 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001252/0.001908, allocations: 1.25 MB / 25.41 MB, free: 2.066 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.003436, allocations: 0.7926 MB / 26.2 MB, free: 1.277 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003943/0.003849, allocations: 4 kB / 26.21 MB, free: 1.273 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.004176, allocations: 92.69 kB / 26.3 MB, free: 1.184 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0009777/0.005165, allocations: 267.8 kB / 26.56 MB, free: 0.9219 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.005409, allocations: 52.77 kB / 26.61 MB, free: 0.8711 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0005664/0.005988, allocations: 486.6 kB / 27.08 MB, free: 404 kB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.00631, allocations: 226.7 kB / 27.31 MB, free: 168 kB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003013/0.006621, allocations: 190.8 kB / 27.49 MB, free: 4.621 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.007014, allocations: 198.7 kB / 27.69 MB, free: 4.426 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 8.038e-05/0.007105, allocations: 16 kB / 27.7 MB, free: 4.41 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005488/0.00766, allocations: 223.6 kB / 27.92 MB, free: 4.191 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.007868, allocations: 111.5 kB / 28.03 MB, free: 4.082 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.008178, allocations: 232.2 kB / 28.26 MB, free: 3.848 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.009217, allocations: 0.6465 MB / 28.9 MB, free: 3.199 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.009233, allocations: 3.938 kB / 28.91 MB, free: 3.195 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.162e-06/0.00924, allocations: 0 / 28.91 MB, free: 3.195 MB / 18.57 MB Notification: Performance of Transformations before backend: time 9.211e-05/0.009338, allocations: 0 / 28.91 MB, free: 3.195 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.001293/0.01064, allocations: 0.7399 MB / 29.65 MB, free: 2.395 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.0107, allocations: 8.969 kB / 29.66 MB, free: 2.387 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002284/0.01094, allocations: 122.7 kB / 29.78 MB, free: 2.258 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.01111, allocations: 68.17 kB / 29.84 MB, free: 2.191 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.01168, allocations: 372.1 kB / 30.21 MB, free: 1.789 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.62e-05/0.01177, allocations: 53.67 kB / 30.26 MB, free: 1.734 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.01188, allocations: 64.31 kB / 30.32 MB, free: 1.672 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.0135, allocations: 0.9422 MB / 31.26 MB, free: 0.7109 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.01353, allocations: 3.469 kB / 31.27 MB, free: 0.7109 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.01359, allocations: 31.98 kB / 31.3 MB, free: 0.6797 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.01372, allocations: 61.27 kB / 31.36 MB, free: 0.6211 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008833/0.02256, allocations: 0.6598 MB / 32.02 MB, free: 7.301 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.02488, allocations: 1.785 MB / 33.8 MB, free: 6.508 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.02553, allocations: 478.1 kB / 34.27 MB, free: 6.23 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003485/0.02589, allocations: 280.8 kB / 34.54 MB, free: 6.094 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005016/0.0264, allocations: 0.8637 MB / 35.41 MB, free: 5.117 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.02643, allocations: 35.78 kB / 35.44 MB, free: 5.078 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/0.02644, allocations: 0 / 35.44 MB, free: 5.078 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002265/0.02871, allocations: 1.155 MB / 36.6 MB, free: 4.16 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.02879, allocations: 182.1 kB / 36.77 MB, free: 3.945 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.029, allocations: 267.8 kB / 37.04 MB, free: 3.672 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.02904, allocations: 41.7 kB / 37.08 MB, free: 3.625 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.02918, allocations: 276.6 kB / 37.35 MB, free: 3.359 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 7.674e-05/0.02926, allocations: 105.1 kB / 37.45 MB, free: 3.258 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.02931, allocations: 13.56 kB / 37.46 MB, free: 3.246 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.02941, allocations: 342.8 kB / 37.8 MB, free: 2.902 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.02974, allocations: 240.7 kB / 38.03 MB, free: 2.664 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.03013, allocations: 352.5 kB / 38.38 MB, free: 2.273 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000647/0.03079, allocations: 0.637 MB / 39.01 MB, free: 1.574 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.0308, allocations: 0 / 39.01 MB, free: 1.574 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001049/0.03186, allocations: 0.859 MB / 39.87 MB, free: 0.6992 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.03193, allocations: 83.38 kB / 39.95 MB, free: 0.6055 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.03195, allocations: 4 kB / 39.96 MB, free: 0.6016 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.03319, allocations: 304.9 kB / 40.26 MB, free: 308 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.03339, allocations: 56.56 kB / 40.31 MB, free: 252 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/0.04145, allocations: 0.7355 MB / 41.05 MB, free: 5.84 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.04171, allocations: 65.59 kB / 41.11 MB, free: 5.84 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.04177, allocations: 36.16 kB / 41.15 MB, free: 5.84 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.P1.fireOut[1],P1.emptying,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],T1.activation.arcType[1],T2.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 40 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003188/0.0421, allocations: 331.7 kB / 41.47 MB, free: 5.66 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.04217, allocations: 35.59 kB / 41.5 MB, free: 5.66 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.04335, allocations: 0.8242 MB / 42.33 MB, free: 5.539 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.04339, allocations: 7.719 kB / 42.34 MB, free: 5.539 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.0434, allocations: 0 / 42.34 MB, free: 5.539 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.04341, allocations: 7 kB / 42.34 MB, free: 5.539 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.04489, allocations: 1.37 MB / 43.71 MB, free: 4.828 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.04491, allocations: 0 / 43.71 MB, free: 4.828 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.04504, allocations: 29.06 kB / 43.74 MB, free: 4.801 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006548/0.0457, allocations: 268.6 kB / 44 MB, free: 4.551 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.04575, allocations: 19.81 kB / 44.02 MB, free: 4.535 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004519/0.04621, allocations: 0.7644 MB / 44.79 MB, free: 3.754 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.04622, allocations: 0 / 44.79 MB, free: 3.754 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.04749, allocations: 1.157 MB / 45.94 MB, free: 2.59 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.04754, allocations: 107.6 kB / 46.05 MB, free: 2.48 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-05/0.0476, allocations: 15.69 kB / 46.06 MB, free: 2.469 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.04777, allocations: 35.97 kB / 46.1 MB, free: 2.434 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.04794, allocations: 85.08 kB / 46.18 MB, free: 2.352 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.04798, allocations: 23.55 kB / 46.21 MB, free: 2.332 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001061/0.0481, allocations: 171.4 kB / 46.37 MB, free: 2.164 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0481, allocations: 0 / 46.37 MB, free: 2.164 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004689/0.04858, allocations: 197.6 kB / 46.57 MB, free: 1.996 MB / 18.57 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 (P1.fireOut[1],P2.fireIn[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P2.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Number of clocked states: 0 () * 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 (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 {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001723/0.0503, allocations: 1.796 MB / 48.36 MB, free: 196 kB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.007183/0.0575, allocations: 0.7561 MB / 49.12 MB, free: 6.059 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.05752, allocations: 0 / 49.12 MB, free: 6.059 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/0.05802, allocations: 457.2 kB / 49.56 MB, free: 5.93 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.05837, allocations: 49 kB / 49.61 MB, free: 5.922 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004781/0.06316, allocations: 4.8 MB / 54.41 MB, free: 2.277 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.0635, allocations: 0.9321 MB / 55.34 MB, free: 1.32 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0001738/0.06368, allocations: 93.95 kB / 55.44 MB, free: 1.23 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.06385, allocations: 159.4 kB / 55.59 MB, free: 1.074 MB / 18.57 MB Notification: Performance of SimCode: time 8.32e-07/0.06386, allocations: 2.719 kB / 55.59 MB, free: 1.074 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.09701, allocations: 9.967 MB / 65.56 MB, free: 3.965 MB / 24.77 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.09724, allocations: 190.8 kB / 65.75 MB, free: 3.711 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.295/2.392, allocations: 0 / 65.75 MB, free: 3.711 MB / 24.77 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)