Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test12.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.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005417/0.005417, allocations: 1.36 MB / 16.61 MB, free: 5.148 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.62e-05/1.633e-05, allocations: 0 / 23.76 MB, free: 3.719 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005023/0.0005413, allocations: 361.2 kB / 24.11 MB, free: 3.375 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test12): time 0.001292/0.001846, allocations: 1.795 MB / 25.91 MB, free: 1.578 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.003467, allocations: 0.9971 MB / 26.9 MB, free: 0.5859 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004674/0.003953, allocations: 8.562 kB / 26.91 MB, free: 0.5781 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.004313, allocations: 135 kB / 27.05 MB, free: 456 kB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0008966/0.005222, allocations: 349.6 kB / 27.39 MB, free: 108 kB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.005456, allocations: 79.92 kB / 27.46 MB, free: 28 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0009089/0.006376, allocations: 0.7322 MB / 28.2 MB, free: 3.938 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006354/0.007025, allocations: 414.1 kB / 28.6 MB, free: 3.516 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004259/0.007463, allocations: 290.1 kB / 28.88 MB, free: 3.23 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003712/0.007845, allocations: 309.9 kB / 29.19 MB, free: 2.926 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 8.97e-05/0.007944, allocations: 28 kB / 29.21 MB, free: 2.898 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.008312, allocations: 223.6 kB / 29.43 MB, free: 2.68 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.008488, allocations: 179.2 kB / 29.61 MB, free: 2.504 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.00875, allocations: 321.5 kB / 29.92 MB, free: 2.188 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0009002/0.009657, allocations: 0.9114 MB / 30.83 MB, free: 1.273 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.009674, allocations: 4 kB / 30.84 MB, free: 1.27 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.553e-06/0.00968, allocations: 0 / 30.84 MB, free: 1.27 MB / 18.57 MB Notification: Performance of Transformations before backend: time 3.23e-05/0.009719, allocations: 0 / 30.84 MB, free: 1.27 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.001313/0.01104, allocations: 0.9647 MB / 31.8 MB, free: 240 kB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.01108, allocations: 12.31 kB / 31.81 MB, free: 228 kB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.01129, allocations: 168.9 kB / 31.98 MB, free: 48 kB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006364/0.01766, allocations: 97.7 kB / 32.07 MB, free: 7.297 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008059/0.0185, allocations: 492.3 kB / 32.55 MB, free: 7.043 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.0186, allocations: 81.61 kB / 32.63 MB, free: 7.039 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.01893, allocations: 110.1 kB / 32.74 MB, free: 7.039 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002116/0.02106, allocations: 1.495 MB / 34.24 MB, free: 6.586 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.02109, allocations: 3.938 kB / 34.24 MB, free: 6.582 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.597e-05/0.02118, allocations: 45.36 kB / 34.29 MB, free: 6.555 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.0213, allocations: 95.12 kB / 34.38 MB, free: 6.48 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.02273, allocations: 1.075 MB / 35.45 MB, free: 5.41 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.02587, allocations: 2.902 MB / 38.35 MB, free: 2.414 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008156/0.0267, allocations: 0.757 MB / 39.11 MB, free: 1.605 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005233/0.02724, allocations: 455.3 kB / 39.56 MB, free: 1.16 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004652/0.02772, allocations: 0.8548 MB / 40.41 MB, free: 124 kB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.02775, allocations: 42.92 kB / 40.45 MB, free: 72 kB / 18.57 MB Notification: Performance of pre-optimization done (n=52): time 4.087e-06/0.02776, allocations: 0 / 40.45 MB, free: 72 kB / 18.57 MB Notification: Performance of matching and sorting (n=52): time 0.009472/0.03724, allocations: 1.713 MB / 42.17 MB, free: 6.16 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.03735, allocations: 245 kB / 42.41 MB, free: 5.91 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.03767, allocations: 363.5 kB / 42.76 MB, free: 5.801 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.03772, allocations: 46.97 kB / 42.81 MB, free: 5.762 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.03793, allocations: 393.6 kB / 43.19 MB, free: 5.504 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 9.918e-05/0.03804, allocations: 167.2 kB / 43.35 MB, free: 5.383 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.03815, allocations: 104.1 kB / 43.46 MB, free: 5.336 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 6.037e-05/0.03821, allocations: 352.8 kB / 43.8 MB, free: 5.008 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.03868, allocations: 379.2 kB / 44.17 MB, free: 4.852 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005296/0.03922, allocations: 0.5293 MB / 44.7 MB, free: 4.348 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008891/0.04012, allocations: 0.9777 MB / 45.68 MB, free: 3.289 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.04014, allocations: 0 / 45.68 MB, free: 3.289 MB / 18.57 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001505/0.04165, allocations: 1.296 MB / 46.97 MB, free: 1.965 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 6.239e-05/0.04172, allocations: 122.9 kB / 47.09 MB, free: 1.828 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.04174, allocations: 4 kB / 47.1 MB, free: 1.824 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.04343, allocations: 462.7 kB / 47.55 MB, free: 1.371 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.04367, allocations: 95 kB / 47.64 MB, free: 1.281 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007163/0.04439, allocations: 0.8887 MB / 48.53 MB, free: 380 kB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006571/0.05097, allocations: 100.1 kB / 48.63 MB, free: 5.457 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.05116, allocations: 43.3 kB / 48.67 MB, free: 5.457 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 32 (P2.feeding,$PRE.P2.fireIn[1],P3.feeding,$PRE.P3.fireIn[1],P1.outTransition[2].arcType,P1.outTransition[1].arcType,T2.activation.emptied[1],T3.activation.emptied[1],T3.activation.arcType[1],T2.activation.arcType[1],P3.fireIn[1],P2.fireIn[1],P1.fireOut[2],$PRE.P1.fireOut[2],P1.fireOut[1],$PRE.P1.fireOut[1],P1.fireIn[1],$PRE.P1.fireIn[1],T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active,T3.activation.fed[1],T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T2.activation.fed[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T1.activation.emptied[1],T3.outPlaces[1].enabledByInPlaces,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 (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0005845/0.05175, allocations: 463.5 kB / 49.12 MB, free: 5.246 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.05187, allocations: 42.34 kB / 49.17 MB, free: 5.246 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.05354, allocations: 1.235 MB / 50.4 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/0.05359, allocations: 16.66 kB / 50.42 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.0536, allocations: 0 / 50.42 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.05361, allocations: 6.469 kB / 50.42 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.05581, allocations: 2.006 MB / 52.43 MB, free: 3.988 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.05583, allocations: 0.6562 kB / 52.43 MB, free: 3.988 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.05601, allocations: 52.14 kB / 52.48 MB, free: 3.945 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009302/0.05695, allocations: 387 kB / 52.86 MB, free: 3.578 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/0.057, allocations: 19.98 kB / 52.88 MB, free: 3.559 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006733/0.05768, allocations: 0.9304 MB / 53.81 MB, free: 2.613 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.0577, allocations: 0 / 53.81 MB, free: 2.613 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.05959, allocations: 1.726 MB / 55.53 MB, free: 0.8867 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 5.887e-05/0.05966, allocations: 122.1 kB / 55.65 MB, free: 0.7773 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.533e-05/0.05976, allocations: 28.03 kB / 55.68 MB, free: 0.75 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.05999, allocations: 52.92 kB / 55.73 MB, free: 0.6992 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.06021, allocations: 152.2 kB / 55.88 MB, free: 0.5508 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.06027, allocations: 27.98 kB / 55.91 MB, free: 0.5234 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001519/0.06043, allocations: 209.9 kB / 56.11 MB, free: 324 kB / 18.57 MB Notification: Performance of sort global known variables: time 2e-07/0.06043, allocations: 2.516 kB / 56.12 MB, free: 324 kB / 18.57 MB Notification: Performance of remove unused functions: time 0.007217/0.06766, allocations: 275 kB / 56.38 MB, free: 5.172 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: 18 (T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P2.feeding,P3.fireIn[1],P3.feeding) * Number of discrete states: 13 (P1.fireIn[1],T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P1.fireOut[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,P2.fireIn[1],P3.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002623/0.0703, allocations: 2.381 MB / 58.76 MB, free: 4.398 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.07173, allocations: 1.191 MB / 59.96 MB, free: 3.844 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.07174, allocations: 0 / 59.96 MB, free: 3.844 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0006518/0.0724, allocations: 0.7003 MB / 60.66 MB, free: 3.184 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.07282, allocations: 69.44 kB / 60.72 MB, free: 3.125 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01421/0.08704, allocations: 6.943 MB / 67.67 MB, free: 2.84 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/0.08771, allocations: 1.095 MB / 68.76 MB, free: 8.375 MB / 24.88 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.08799, allocations: 147.7 kB / 68.91 MB, free: 8.266 MB / 24.88 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.08825, allocations: 273.1 kB / 69.17 MB, free: 8 MB / 24.88 MB Notification: Performance of SimCode: time 7.92e-07/0.08826, allocations: 0 / 69.17 MB, free: 8 MB / 24.88 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03527/0.1235, allocations: 14.69 MB / 83.86 MB, free: 5.586 MB / 24.88 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/0.1237, allocations: 196.4 kB / 84.05 MB, free: 5.332 MB / 24.88 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.31, allocations: 7.828 kB / 84.06 MB, free: 5.328 MB / 24.88 MB (rm -f ConPNlib_ConPNlib.Examples.Test12.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test12.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test12.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test12.fmu > ConPNlib_ConPNlib.Examples.Test12.pipe 2>&1)