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.01696/0.01696, allocations: 1.356 MB / 16.3 MB, free: 5.305 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.616e-05/1.61e-05, allocations: 0 / 23.32 MB, free: 3.988 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007791/0.0008326, allocations: 367.4 kB / 23.68 MB, free: 3.824 MB / 13.93 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.006326/0.007187, allocations: 4.111 MB / 27.79 MB, free: 4.469 MB / 18.57 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001464/0.007389, allocations: 47.98 kB / 27.84 MB, free: 4.422 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 0.04858/0.05599, allocations: 9.254 MB / 37.09 MB, free: 4.359 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.164e-06/0.05604, allocations: 0 / 37.09 MB, free: 4.359 MB / 18.57 MB Notification: Performance of Transformations before backend: time 3.149e-05/0.05608, allocations: 11.17 kB / 37.1 MB, free: 4.352 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.001401/0.0575, allocations: 0.7733 MB / 37.87 MB, free: 3.512 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.05755, allocations: 8.297 kB / 37.88 MB, free: 3.504 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.05777, allocations: 118.7 kB / 38 MB, free: 3.379 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.05793, allocations: 64.2 kB / 38.06 MB, free: 3.316 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006967/0.05864, allocations: 398.6 kB / 38.45 MB, free: 2.887 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/0.05872, allocations: 57.64 kB / 38.51 MB, free: 2.832 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.05886, allocations: 72.31 kB / 38.58 MB, free: 2.762 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.06081, allocations: 0.9001 MB / 39.48 MB, free: 1.84 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.06087, allocations: 0 / 39.48 MB, free: 1.84 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-05/0.06098, allocations: 31.94 kB / 39.51 MB, free: 1.809 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.06112, allocations: 49.28 kB / 39.56 MB, free: 1.758 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.06269, allocations: 0.6257 MB / 40.18 MB, free: 1.133 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01717/0.07989, allocations: 1.576 MB / 41.76 MB, free: 2.363 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.081, allocations: 468.8 kB / 42.22 MB, free: 2.242 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007781/0.0818, allocations: 0.8615 MB / 43.08 MB, free: 1.305 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.08185, allocations: 36.25 kB / 43.11 MB, free: 1.266 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 3.887e-06/0.08187, allocations: 0 / 43.11 MB, free: 1.266 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.003408/0.08528, allocations: 1.148 MB / 44.26 MB, free: 0.8711 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.739e-05/0.0854, allocations: 178.4 kB / 44.44 MB, free: 0.6836 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003929/0.08581, allocations: 243.8 kB / 44.67 MB, free: 6.82 MB / 24.81 MB Notification: Performance of collectPreVariables (initialization): time 6.721e-05/0.08589, allocations: 34.89 kB / 44.71 MB, free: 6.789 MB / 24.81 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.08612, allocations: 280 kB / 44.98 MB, free: 6.629 MB / 24.81 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.08626, allocations: 112.2 kB / 45.09 MB, free: 6.57 MB / 24.81 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.08633, allocations: 11.58 kB / 45.1 MB, free: 6.57 MB / 24.81 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.08649, allocations: 338 kB / 45.43 MB, free: 6.258 MB / 24.81 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/0.0871, allocations: 232.2 kB / 45.66 MB, free: 6.258 MB / 24.81 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.08777, allocations: 345.8 kB / 46 MB, free: 6.125 MB / 24.81 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006408/0.08843, allocations: 294.9 kB / 46.28 MB, free: 6.059 MB / 24.81 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.08846, allocations: 2.75 kB / 46.29 MB, free: 6.059 MB / 24.81 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001868/0.09033, allocations: 0.7436 MB / 47.03 MB, free: 5.914 MB / 24.81 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.09046, allocations: 85.58 kB / 47.11 MB, free: 5.84 MB / 24.81 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.09048, allocations: 7.594 kB / 47.12 MB, free: 5.84 MB / 24.81 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.09232, allocations: 274.2 kB / 47.39 MB, free: 5.805 MB / 24.81 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.09268, allocations: 54.03 kB / 47.44 MB, free: 5.801 MB / 24.81 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.09382, allocations: 0.7464 MB / 48.19 MB, free: 5.215 MB / 24.81 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.09434, allocations: 65.14 kB / 48.25 MB, free: 5.191 MB / 24.81 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-05/0.09444, allocations: 33.16 kB / 48.28 MB, free: 5.184 MB / 24.81 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.P1.fireOut[1],P1.emptying,P2.outTransition[1].arcType,P1.feeding,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],T1.activation.fed[1],T2.activation.arcType[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 (44): * Single equations (assignments): 41 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006309/0.09508, allocations: 347.1 kB / 48.62 MB, free: 4.941 MB / 24.81 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.09526, allocations: 28.66 kB / 48.65 MB, free: 4.93 MB / 24.81 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.09739, allocations: 0.7402 MB / 49.39 MB, free: 4.359 MB / 24.81 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.753e-05/0.09745, allocations: 5.312 kB / 49.4 MB, free: 4.355 MB / 24.81 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.09747, allocations: 0 / 49.4 MB, free: 4.355 MB / 24.81 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.09749, allocations: 3.375 kB / 49.4 MB, free: 4.355 MB / 24.81 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.1003, allocations: 1.254 MB / 50.65 MB, free: 3.234 MB / 24.81 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.1003, allocations: 0 / 50.65 MB, free: 3.234 MB / 24.81 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.1006, allocations: 27.89 kB / 50.68 MB, free: 3.211 MB / 24.81 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.1021, allocations: 285.7 kB / 50.96 MB, free: 2.996 MB / 24.81 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/0.1022, allocations: 19.84 kB / 50.98 MB, free: 2.98 MB / 24.81 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.1034, allocations: 0.7725 MB / 51.75 MB, free: 2.238 MB / 24.81 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.1034, allocations: 5.828 kB / 51.76 MB, free: 2.234 MB / 24.81 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.1061, allocations: 1.02 MB / 52.78 MB, free: 1.312 MB / 24.81 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1063, allocations: 111.6 kB / 52.89 MB, free: 1.188 MB / 24.81 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.1064, allocations: 16 kB / 52.9 MB, free: 1.172 MB / 24.81 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003359/0.1067, allocations: 37.14 kB / 52.94 MB, free: 1.145 MB / 24.81 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.107, allocations: 93.92 kB / 53.03 MB, free: 1.082 MB / 24.81 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.739e-05/0.1071, allocations: 26.88 kB / 53.06 MB, free: 1.062 MB / 24.81 MB Notification: Performance of sorting global known variables: time 0.000265/0.1074, allocations: 168.2 kB / 53.22 MB, free: 0.9102 MB / 24.81 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1074, allocations: 0 / 53.22 MB, free: 0.9102 MB / 24.81 MB Notification: Performance of remove unused functions: time 0.0009245/0.1084, allocations: 204.9 kB / 53.42 MB, free: 0.7305 MB / 24.81 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 (P2.fireOut[1],P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyInputActiveVec[1],T2.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 (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 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0188/0.1272, allocations: 1.705 MB / 55.13 MB, free: 7.66 MB / 24.81 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.129, allocations: 0.7557 MB / 55.88 MB, free: 7.535 MB / 24.81 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.129, allocations: 3.938 kB / 55.89 MB, free: 7.535 MB / 24.81 MB Notification: Performance of simCode: created simulation system equations: time 0.0008982/0.1299, allocations: 452.6 kB / 56.33 MB, free: 7.406 MB / 24.81 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.1303, allocations: 38.42 kB / 56.37 MB, free: 7.406 MB / 24.81 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006506/0.1368, allocations: 4.845 MB / 61.21 MB, free: 4.48 MB / 24.81 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.1374, allocations: 0.954 MB / 62.16 MB, free: 3.758 MB / 24.81 MB Notification: Performance of simCode: alias equations: time 0.0003196/0.1377, allocations: 80.52 kB / 62.24 MB, free: 3.754 MB / 24.81 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.138, allocations: 158.8 kB / 62.4 MB, free: 3.629 MB / 24.81 MB Notification: Performance of SimCode: time 1.042e-06/0.138, allocations: 3.969 kB / 62.4 MB, free: 3.629 MB / 24.81 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05505/0.1931, allocations: 10.21 MB / 72.61 MB, free: 4.145 MB / 24.81 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.1933, allocations: 162.2 kB / 72.77 MB, free: 3.91 MB / 24.81 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.829/3.023, allocations: 0 / 72.77 MB, free: 3.91 MB / 24.81 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)